Skip to content

Commit

Permalink
Generate async files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 14, 2024
1 parent a66322c commit aed87ee
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/NHibernate.Test/Async/BulkManipulation/HQLBulkOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace NHibernate.Test.BulkManipulation
{
using System.Threading.Tasks;
[TestFixture]
public class HqlBulkOperationsAsync: BaseFixture
public class HqlBulkOperationsAsync: TestCase
{
[Test]
public async Task SimpleDeleteAsync()
Expand Down Expand Up @@ -43,5 +43,23 @@ public async Task SimpleDeleteAsync()
await (tx.CommitAsync());
}
}

protected override string MappingsAssembly => "NHibernate.Test";

protected override string[] Mappings => new[] { "BulkManipulation.Enrolment.hbm.xml" };

[Test]
public async Task InsertFromSelectWithMultipleAssociationsAsync()
{
using (var s = OpenSession())
using (var tx = s.BeginTransaction())
{
await (s.CreateQuery("insert into Enrolment (Course, Student)" +
" select e.Course, e.Student from Enrolment e")
.ExecuteUpdateAsync());

await (tx.CommitAsync());
}
}
}
}
}

0 comments on commit aed87ee

Please sign in to comment.