Skip to content

Commit 1df5de8

Browse files
Generate async files
1 parent 5b29313 commit 1df5de8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/NHibernate.Test/Async/BulkManipulation/HQLBulkOperations.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)