Esempio n. 1
0
        public static EntitySchema CreateEntitySchema(string alias, string name, params AttributeDefinition[] attributeDefinitions)
        {
            var def = new EntitySchema();

            def.Setup(alias, name);
            def.AttributeDefinitions.AddRange(attributeDefinitions);
            return(def);
        }
Esempio n. 2
0
        public static EntitySchema CreateEntitySchema(string alias, string name, bool assignId, params AttributeDefinition[] attributeDefinitions)
        {
            var def = new EntitySchema();

            def.Setup(alias, name);
            def.AttributeDefinitions.AddRange(attributeDefinitions);
            if (assignId)
            {
                def.Id = new HiveId(Guid.NewGuid());
            }
            return(def);
        }
 public static EntitySchema CreateEntitySchema(string alias, string name, bool assignId, params AttributeDefinition[] attributeDefinitions)
 {
     var def = new EntitySchema();
     def.Setup(alias, name);
     def.AttributeDefinitions.AddRange(attributeDefinitions);
     if (assignId)
         def.Id = new HiveId(Guid.NewGuid());
     return def;
 }
 public static EntitySchema CreateEntitySchema(string alias, string name, params AttributeDefinition[] attributeDefinitions)
 {
     var def = new EntitySchema();
     def.Setup(alias, name);
     def.AttributeDefinitions.AddRange(attributeDefinitions);
     return def;
 }