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传递将导致没有关联的外键。

适用于