File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -5421,6 +5421,20 @@ public async Task PSCacheAsync()
5421
5421
}
5422
5422
}
5423
5423
5424
+ // NH-2329 (GH-1218)
5425
+ [ Test ]
5426
+ public async Task JoinOverJoinAsync ( )
5427
+ {
5428
+ using ( var s = OpenSession ( ) )
5429
+ {
5430
+ await ( s . CreateCriteria ( typeof ( Stuff ) , "s1" )
5431
+ . CreateAlias ( "s1.MoreStuff" , "m1" )
5432
+ . CreateAlias ( "m1.Stuffs" , "s2" )
5433
+ . Add ( Expression . Eq ( "s2.Id" , 2L ) )
5434
+ . ListAsync < Stuff > ( ) ) ;
5435
+ }
5436
+ }
5437
+
5424
5438
#region NHibernate specific tests
5425
5439
5426
5440
[ Test ]
Original file line number Diff line number Diff line change @@ -5409,6 +5409,20 @@ public void PSCache()
5409
5409
}
5410
5410
}
5411
5411
5412
+ // NH-2329 (GH-1218)
5413
+ [ Test ]
5414
+ public void JoinOverJoin ( )
5415
+ {
5416
+ using ( var s = OpenSession ( ) )
5417
+ {
5418
+ s . CreateCriteria ( typeof ( Stuff ) , "s1" )
5419
+ . CreateAlias ( "s1.MoreStuff" , "m1" )
5420
+ . CreateAlias ( "m1.Stuffs" , "s2" )
5421
+ . Add ( Expression . Eq ( "s2.Id" , 2L ) )
5422
+ . List < Stuff > ( ) ;
5423
+ }
5424
+ }
5425
+
5412
5426
#region NHibernate specific tests
5413
5427
5414
5428
[ Test ]
You can’t perform that action at this time.
0 commit comments