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; }
public TableDefinition SetCompoundPrimaryKey( IEnumerable <string> fields ) { PrimaryKey = PrimaryKeyDefinition.CreateCompound(fields); return(this); }
public TableDefinition SetSimplePrimaryKey( string fieldName, bool isAutoIncrement = false ) { PrimaryKey = PrimaryKeyDefinition.CreateSimple( fieldName, isAutoIncrement ); return(this); }