Skip to content

Commit 0f89eb9

Browse files
github-actions[bot]hazzik
authored andcommitted
Generate async files
1 parent c6640f2 commit 0f89eb9

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by AsyncGenerator.
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
11+
using System;
12+
using System.Collections.Generic;
13+
using System.Linq;
14+
using System.Text;
15+
using System.Threading.Tasks;
16+
17+
using NUnit.Framework;
18+
19+
/* 项目“NHibernate.Test (net48)”的未合并的更改
20+
在此之前:
21+
using NHibernate.Test.NHSpecificTest;
22+
在此之后:
23+
using NHibernate.Test.NHSpecificTest;
24+
using NHibernate;
25+
using NHibernate.Test;
26+
using NHibernate.Test.MappingTest;
27+
using NHibernate.Test.NHSpecificTest.NHNewBug;
28+
*/
29+
using NHibernate.Test.NHSpecificTest;
30+
31+
namespace NHibernate.Test.NHSpecificTest.NHNewBug
32+
{
33+
34+
35+
36+
37+
38+
39+
40+
[TestFixture]
41+
internal class ManyToOneFixtureAsync : BugTestCase
42+
{
43+
[Test]
44+
public async Task AccessIdOfManyToOneInEmbeddableAsync()
45+
{
46+
ISession s = OpenSession();
47+
ITransaction t = s.BeginTransaction();
48+
Parent p = new Parent();
49+
p.ContainedChildren.Add(new ContainedChild(new Child()));
50+
await (s.PersistAsync(p));
51+
await (t.CommitAsync());
52+
var list = await (s.CreateQuery("from Parent p join p.ContainedChildren c where c.Child.Id is not null").ListAsync());
53+
Assert.AreNotEqual(0, list.Count);
54+
await (s.DeleteAsync(p));
55+
await (t.CommitAsync());
56+
s.Close();
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)