Skip to content

Commit df84e62

Browse files
Delay entity insert on Persist until session is flushed
Co-authored-by: Frédéric Delaporte <[email protected]>
1 parent ce73fc0 commit df84e62

19 files changed

+1054
-50
lines changed

src/NHibernate.Test/Async/NHSpecificTest/GH1754/Fixture.cs

Lines changed: 463 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
4+
namespace NHibernate.Test.NHSpecificTest.GH1754
5+
{
6+
public class Entity
7+
{
8+
public virtual int Id { get; set; }
9+
public virtual string Name { get; set; }
10+
public virtual ISet<ChildEntity> Children { get; set; } = new HashSet<ChildEntity>();
11+
}
12+
13+
public class EntityWithoutDeleteOrphan
14+
{
15+
public virtual int Id { get; set; }
16+
public virtual string Name { get; set; }
17+
public virtual ISet<ChildEntity> Children { get; set; } = new HashSet<ChildEntity>();
18+
}
19+
20+
public class ChildEntity
21+
{
22+
public virtual Guid Id { get; set; }
23+
public virtual string Name { get; set; }
24+
}
25+
}

0 commit comments

Comments
 (0)