@@ -22,10 +22,10 @@ public class Author : Entity
2222 [ Field ]
2323 public AuthorName NoFullName { get ; set ; }
2424
25- [ Field ( Nullable = true ) ]
25+ [ Field ( Nullable = true , Length = 50 ) ]
2626 public string ShortDescription { get ; set ; }
2727
28- [ Field ( Nullable = true , LazyLoad = true ) ]
28+ [ Field ( Nullable = true , Length = 100 , LazyLoad = true ) ]
2929 public string LongDescription { get ; set ; }
3030
3131 [ Field ]
@@ -39,7 +39,7 @@ public class Book : Entity
3939 [ Field , Key ]
4040 public int Id { get ; private set ; }
4141
42- [ Field ]
42+ [ Field ( Length = 25 ) ]
4343 public string Title { get ; set ; }
4444
4545 [ Field ]
@@ -81,19 +81,19 @@ public class ReviewAuthor : Entity
8181 [ Field , Key ]
8282 public int Id { get ; private set ; }
8383
84- [ Field ]
84+ [ Field ( Length = 20 ) ]
8585 public string Nickname { get ; set ; }
8686 }
8787
8888 public class AuthorName : Structure
8989 {
90- [ Field ]
90+ [ Field ( Length = 20 ) ]
9191 public string FirstName { get ; set ; }
9292
93- [ Field ]
93+ [ Field ( Length = 20 ) ]
9494 public string LastName { get ; set ; }
9595
96- [ Field ]
96+ [ Field ( Length = 20 ) ]
9797 public string MidName { get ; set ; }
9898 }
9999}
@@ -407,7 +407,7 @@ public void CoalesceWithStringFieldTest01()
407407
408408 var storageResult = session . Query . All < Book > ( )
409409 . Select ( b => b . Title ?? nullTitle )
410- . Where ( t => t . Contains ( "N" ) )
410+ . Where ( t => t . Contains ( "N" ) || t . Contains ( "n" ) )
411411 . ToList ( 7 )
412412 . OrderBy ( t => t ) ;
413413
@@ -717,7 +717,7 @@ public void TernaryWithStringFieldTest01()
717717
718718 var storageResult = session . Query . All < Book > ( )
719719 . Select ( b => b . Title != null ? b . Title : nullTitle )
720- . Where ( t => t . Contains ( "N" ) )
720+ . Where ( t => t . Contains ( "N" ) || t . Contains ( "n" ) )
721721 . ToList ( 7 )
722722 . OrderBy ( t => t ) ;
723723
@@ -742,7 +742,7 @@ public void TernaryWithStringFieldTest02()
742742
743743 var storageResult = session . Query . All < Book > ( )
744744 . Select ( b => b . Title == null ? nullTitle : b . Title )
745- . Where ( t => t . Contains ( "N" ) )
745+ . Where ( t => t . Contains ( "N" ) || t . Contains ( "n" ) )
746746 . ToList ( 7 )
747747 . OrderBy ( t => t ) ;
748748
0 commit comments