Adds foreign key to new or existing table.
Inheritance: ForeignKey
Beispiel #1
0
 /// <summary>
 /// Adds foreigns key.
 /// </summary>
 /// <param name="reference">The relationship name.</param>
 /// <returns>table instance.</returns>
 public virtual ForeignKey ForeignKey(String reference)
 {
     var foreignKey = new AddForeignKey(reference, Name);
     Parts.Add(foreignKey);
     return foreignKey;
 }