IMutableForeignKey.SetProperties 方法

定义

设置外键属性和该目标主体键。

public void SetProperties (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IMutableKey principalKey);
abstract member SetProperties : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> * Microsoft.EntityFrameworkCore.Metadata.IMutableKey -> unit
Public Sub SetProperties (properties As IReadOnlyList(Of IMutableProperty), principalKey As IMutableKey)

参数

properties
IReadOnlyList<IMutableProperty>

依赖实体中的外键属性。

principalKey
IMutableKey

要定位的主键或备用键。

适用于