語言

IMutableSkipNavigation.SetForeignKey(IMutableForeignKey) 方法

定義

設定外鍵。

public void SetForeignKey(Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey? foreignKey);
public void SetForeignKey(Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);
abstract member SetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey -> unit
Public Sub SetForeignKey (foreignKey As IMutableForeignKey)

參數

foreignKey
IMutableForeignKey

外鍵。 通過 null 則不會有外鍵關聯。

適用於