var store = new EntityStore();
var entityA = store.CreateEntity();
var entityB = store.CreateEntity();
entityA.AddRelation(new Link(entityB));
entityA.DeleteEntity();
var incomingLinks = entityB.GetIncomingLinks<Link>();
incomingLinks.Count.Should().Be(0);
private readonly struct Link(Entity target) : ILinkRelation
{
public Entity GetRelationKey() => target;
}
This test fail