/// <summary> /// Creates a ForeingKey with the specified table name, join field and the list of fields that will be retireved /// from the join table. /// </summary> /// <param name="type">The foreign key type</param> /// <param name="tableName">The join table name</param> /// <param name="joinField">The field that will be used to join the tables</param> /// <param name="joinFields">The list of fields that will be retrieved from the specified TableName</param> /// <param name="fromTable">The list of fields that will be retrieved from the specified TableName</param> public ForeignKeyInfo(Field.FKType type, string tableName, string joinField, string[] joinFields, string fromTable) { this.TableName = tableName; this.JoinField = joinField; this.Type = type; this.FromTable = fromTable; if (joinFields != null) { foreach (string jf in joinFields) { this.JoinFields.Add(jf); } } }
/// <summary> /// Creates a ForeingKey with the specified table name, join field and the list of fields that will be retireved /// from the join table. /// </summary> /// <param name="type">The foreign key type</param> /// <param name="tableName">The join table name</param> /// <param name="joinField">The field that will be used to join the tables</param> /// <param name="joinFields">The list of fields that will be retrieved from the specified TableName</param> public ForeignKeyInfo(Field.FKType type, string tableName, string joinField, string[] joinFields) : this(type, tableName, joinField, joinFields, "") { }