/// <summary> /// Sets the property as foreign key and its column name. /// <para>Call multiple times for composite keys.</para> /// </summary> /// <param name="columnName">The column name.</param> /// <returns>The property builder.</returns> public IPropertyBuilder ForeignKey(string columnName) { EntityBuilder.AddForeignKey(PropertyName, columnName); return(this); }
/// <summary> /// Sets the property as foreign key. /// <para>Call multiple times for composite keys.</para> /// </summary> /// <returns>The property builder.</returns> public IPropertyBuilder ForeignKey() { EntityBuilder.AddForeignKey(PropertyName); return(this); }