public static ObjectType CreateType(Domain domain, string name) { var type = domain.AddDeclaredObjectType(Guid.NewGuid()); type.SingularName = name; type.PluralName = name + "s"; return(type); }
public static ObjectType BuildObjectType(this Domain domain, Guid id, string singularName, string pluralName) { var objectType = domain.AddDeclaredObjectType(id); objectType.SingularName = singularName; objectType.PluralName = pluralName; objectType.SendChangedEvent(); return(objectType); }