File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Async/Criteria/SelectModeTest Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,9 @@ public async Task SelectModeChildFetchForMultipleCollectionsAsync()
141
141
{
142
142
EntityComplex root = null ;
143
143
var futureRoot = session
144
- . QueryOver ( ( ) => root )
145
- . Where ( r => r . Id == _parentEntityComplexId )
146
- . FutureValue ( ) ;
144
+ . QueryOver ( ( ) => root )
145
+ . Where ( r => r . Id == _parentEntityComplexId )
146
+ . FutureValue ( ) ;
147
147
148
148
session
149
149
. QueryOver ( ( ) => root )
@@ -289,7 +289,11 @@ protected override HbmMapping GetMappings()
289
289
m . Column ( "Child2Id" ) ;
290
290
m . ForeignKey ( "none" ) ;
291
291
} ) ;
292
- rc . ManyToOne ( ep => ep . SameTypeChild , m => m . Column ( "SameTypeChildId" ) ) ;
292
+ rc . ManyToOne ( ep => ep . SameTypeChild , m =>
293
+ {
294
+ m . Column ( "SameTypeChildId" ) ;
295
+ m . ForeignKey ( "none" ) ;
296
+ } ) ;
293
297
MapList ( rc , ep => ep . ChildrenList ) ;
294
298
MapList ( rc , ep => ep . ChildrenListEmpty ) ;
295
299
} ) ;
Original file line number Diff line number Diff line change @@ -318,7 +318,11 @@ protected override HbmMapping GetMappings()
318
318
m . Column ( "Child2Id" ) ;
319
319
m . ForeignKey ( "none" ) ;
320
320
} ) ;
321
- rc . ManyToOne ( ep => ep . SameTypeChild , m => m . Column ( "SameTypeChildId" ) ) ;
321
+ rc . ManyToOne ( ep => ep . SameTypeChild , m =>
322
+ {
323
+ m . Column ( "SameTypeChildId" ) ;
324
+ m . ForeignKey ( "none" ) ;
325
+ } ) ;
322
326
MapList ( rc , ep => ep . ChildrenList ) ;
323
327
MapList ( rc , ep => ep . ChildrenListEmpty ) ;
324
328
} ) ;
You can’t perform that action at this time.
0 commit comments