public static Inheritance BuildInheritance(this Domain domain, Guid id, ObjectType subType, ObjectType superType) { var inheritance = domain.AddDeclaredInheritance(id); inheritance.Subtype = subType; inheritance.Supertype = superType; inheritance.SendChangedEvent(); return(inheritance); }