Beispiel #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;
		}
Beispiel #3
0
        public TableDefinition SetCompoundPrimaryKey(
            IEnumerable <string> fields
            )
        {
            PrimaryKey = PrimaryKeyDefinition.CreateCompound(fields);

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

            return(this);
        }