共用方式為


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

要設為目標的主要或替代索引鍵。

適用於