/// <summary> /// Creates a new instance of this class. /// </summary> /// <param name="fields">Collection of fields where new fields are added.</param> /// <param name="table">Table object used associate newly created field objects.</param> internal SqlTableFieldsContext(Sql.FieldCollection fields, Sql.ITable table) { Table = table; Fields = fields; }
/// <summary> /// Creates a new table fields context object to assist populating a collection of /// field objects. /// </summary> /// <param name="fields">The destination collection of field objects.</param> /// <param name="table">The table that is associated with the new field objects.</param> /// <returns>A newly created table fields context object.</returns> public static SqlTableFieldsContext Table(this Sql.FieldCollection fields, Sql.ITable table) => new SqlTableFieldsContext(fields, table);