示例#1
0
 private TableDefinition()
 {
     this.Name        = null;
     this.Indexes     = new List <IndexDefinition>();
     this._triggers   = new List <Trigger>();
     this._primaryKey = PrimaryKeyDefinition.Empty;
 }
		private TableDefinition()
		{
			this.Name        = null;
			this.Indexes     = new List<IndexDefinition>();
			this._triggers   = new List<Trigger>();
			this._primaryKey = PrimaryKeyDefinition.Empty;
		}
示例#3
0
        public TableDefinition SetCompoundPrimaryKey(
            IEnumerable <string> fields
            )
        {
            PrimaryKey = PrimaryKeyDefinition.CreateCompound(fields);

            return(this);
        }
示例#4
0
        public TableDefinition SetSimplePrimaryKey(
            string fieldName,
            bool isAutoIncrement = false
            )
        {
            PrimaryKey = PrimaryKeyDefinition.CreateSimple(
                fieldName,
                isAutoIncrement
                );

            return(this);
        }