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 Aug 13, 2023
1 parent ac57f3a commit 4850c9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task OrphanDeleteForDetachedOneToOneAsync()
using (var transaction = session.BeginTransaction())
{
var entity = await (session.GetAsync<Entity1>(_id));
childId = entity.Child.Id
childId = entity.Child.Id;
await (session.EvictAsync(entity.Child));
entity.Child = null;

Expand All @@ -66,7 +66,7 @@ public async Task OrphanDeleteForDetachedOneToOneAsync()
Assert.That(entity, Is.Not.Null);
Assert.That(entity.Child, Is.Null, "Unexpected child on parent");

var child = await (session.GetAsync<Entity2>(_id));
var child = await (session.GetAsync<Entity2>(childId));
Assert.That(child , Is.Null, "Child is still in database");
}
}
Expand Down

0 comments on commit 4850c9c

Please sign in to comment.