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()
54215421 }
54225422 }
54235423
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+
54245438 #region NHibernate specific tests
54255439
54265440 [ Test ]
Original file line number Diff line number Diff line change @@ -5409,6 +5409,20 @@ public void PSCache()
54095409 }
54105410 }
54115411
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+
54125426 #region NHibernate specific tests
54135427
54145428 [ Test ]
You can’t perform that action at this time.
0 commit comments