@@ -144,7 +144,7 @@ public async Task SelectModeFetchLazyPropertiesAsync()
144144 using ( var session = OpenSession ( ) )
145145 {
146146 var root = await ( session . QueryOver < EntityComplex > ( )
147- . Fetch ( SelectMode . FetchLazyProperties , ec => ec )
147+ . Fetch ( SelectMode . FetchAllLazyProperties , ec => ec )
148148 . Where ( ec => ec . LazyProp != null )
149149 . Take ( 1 )
150150 . SingleOrDefaultAsync ( ) ) ;
@@ -187,7 +187,7 @@ public async Task SelectModeFetchLazyPropertiesFetchGroupAsync()
187187 using ( var session = OpenSession ( ) )
188188 {
189189 var root = await ( session . QueryOver < EntityComplex > ( )
190- . Fetch ( SelectMode . FetchProperty , ec => ec . LazyProp , ec => ec . LazyProp2 , ec => ec . SameTypeChild . LazyProp2 )
190+ . Fetch ( SelectMode . FetchLazyPropertyGroup , ec => ec . LazyProp , ec => ec . LazyProp2 , ec => ec . SameTypeChild . LazyProp2 )
191191 . Where ( ec => ec . Id == _parentEntityComplexId )
192192 . SingleOrDefaultAsync ( ) ) ;
193193
@@ -315,7 +315,7 @@ public async Task SelectModeFetchLazyPropertiesForEntityJoinAsync()
315315 EntitySimpleChild rootChild = null ;
316316 rootChild = await ( session . QueryOver ( ( ) => rootChild )
317317 . JoinEntityQueryOver ( ( ) => parentJoin , Restrictions . Where ( ( ) => rootChild . ParentId == parentJoin . Id ) )
318- . Fetch ( SelectMode . FetchLazyProperties , ec => ec )
318+ . Fetch ( SelectMode . FetchAllLazyProperties , ec => ec )
319319 . Take ( 1 )
320320 . SingleOrDefaultAsync ( ) ) ;
321321 parentJoin = await ( session . LoadAsync < EntityComplex > ( rootChild . ParentId ) ) ;
0 commit comments