protected Entity(Aggregate parent, IHaveIdentity identity) : base(identity) { SetParent(parent); }
private void SetParent(Aggregate aggregate) { Parent = aggregate; Parent.RegisterOwnedEntity(this); }