/// <summary> /// Constructor /// </summary> /// <param name="name"></param> /// <param name="schema"></param> /// <param name="columns"></param> /// <param name="primaryKey"></param> /// <param name="indexes"></param> /// <param name="foreignKeys"></param> /// <param name="uniqueKeys"></param> internal TableInfo(string name, string schema, List<ColumnInfo> columns, ConstraintInfo primaryKey, List<IndexInfo> indexes, List<ForeignKeyInfo> foreignKeys, List<ConstraintInfo> uniqueKeys) { Name = name; Schema = schema; Columns = columns; PrimaryKey = primaryKey; Indexes = indexes; ForeignKeys = foreignKeys; UniqueKeys = uniqueKeys; }
/// <summary> /// Constructor /// </summary> /// <param name="name"></param> /// <param name="schema"></param> /// <param name="columns"></param> /// <param name="primaryKey"></param> /// <param name="indexes"></param> /// <param name="foreignKeys"></param> /// <param name="uniqueKeys"></param> internal TableInfo(string name, string schema, List <ColumnInfo> columns, ConstraintInfo primaryKey, List <IndexInfo> indexes, List <ForeignKeyInfo> foreignKeys, List <ConstraintInfo> uniqueKeys) { Name = name; Schema = schema; Columns = columns; PrimaryKey = primaryKey; Indexes = indexes; ForeignKeys = foreignKeys; UniqueKeys = uniqueKeys; }
/// <summary> /// Returns true if this constraint matches that, property for property. /// </summary> /// <param name="that"></param> /// <returns></returns> public bool Matches(ConstraintInfo that) { return this.Name == that.Name && CollectionUtils.Equal<string>(this.Columns, that.Columns, false); }
/// <summary> /// Returns true if this constraint matches that, property for property. /// </summary> /// <param name="that"></param> /// <returns></returns> public bool Matches(ConstraintInfo that) { return(this.Name == that.Name && CollectionUtils.Equal <string>(this.Columns, that.Columns, false)); }