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()
47
47
[ Test , KnownBug ( "#3489" ) ]
48
48
public async Task InsertFromSelectWithMultipleAssociationsAsync ( )
49
49
{
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 ( ) ;
56
52
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 ( ) ) ;
59
58
}
60
59
}
61
60
}
You can’t perform that action at this time.
0 commit comments