예제 #1
0
        public static ObjectType CreateType(Domain domain, string name)
        {
            var type = domain.AddDeclaredObjectType(Guid.NewGuid());

            type.SingularName = name;
            type.PluralName   = name + "s";
            return(type);
        }
예제 #2
0
        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);
        }