public static void AddForeignKey(this ITransformationProvider migration, string foreignTable, string primaryTable) { migration.AddForeignKey(migration.ForeignKeyName(foreignTable, primaryTable), foreignTable, primaryTable + "Id", primaryTable, "Id"); }
public static void AddForeignKey(this ITransformationProvider migration, string foreignTable, string foreignColumn, string primaryTable, string primaryColumn) { migration.AddForeignKey(migration.ForeignKeyName(foreignTable, foreignColumn, primaryTable, primaryColumn), foreignTable, foreignColumn, primaryTable, primaryColumn); }