public static IAddedForeignKey AddDefaultForeignKeyTo(this IExistingTable table, string foreignTable) { return(table.AddForeignKeyTo(foreignTable).Through(ForeginKeyColumnTo(foreignTable), "Id")); }
/// <summary> /// Adds a foreign key constraint to another table within the same schema with a default foreign key name. /// </summary> public static IAddedForeignKey AddForeignKeyTo(this IExistingTable table, string referencedTableName) { return(table.AddForeignKeyTo(referencedTableName, null)); }