語言

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

目標的主鑰匙或備用鑰匙。

適用於