Пример #1
0
 public static IAddedForeignKey AddDefaultForeignKeyTo(this IExistingTable table, string foreignTable)
 {
     return(table.AddForeignKeyTo(foreignTable).Through(ForeginKeyColumnTo(foreignTable), "Id"));
 }
Пример #2
0
 /// <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));
 }