File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/NHibernate.Test/Async/BulkManipulation Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,14 @@ public async Task SimpleDeleteAsync()
4747 [ Test , KnownBug ( "#3489" ) ]
4848 public async Task InsertFromSelectWithMultipleAssociationsAsync ( )
4949 {
50- using ( var s = OpenSession ( ) )
51- using ( var tx = s . BeginTransaction ( ) )
52- {
53- await ( s . CreateQuery ( "insert into Enrolment (Course, Student)" +
54- " select e.Course, e.Student from Enrolment e" )
55- . ExecuteUpdateAsync ( ) ) ;
50+ using var s = OpenSession ( ) ;
51+ using var tx = s . BeginTransaction ( ) ;
5652
57- await ( tx . CommitAsync ( ) ) ;
58- }
53+ await ( s . CreateQuery ( "insert into Enrolment (Course, Student)" +
54+ " select e.Course, e.Student from Enrolment e" )
55+ . ExecuteUpdateAsync ( ) ) ;
56+
57+ await ( tx . CommitAsync ( ) ) ;
5958 }
6059 }
6160}
You can’t perform that action at this time.
0 commit comments