Share via


KeyDiscoveryConvention.ProcessKeyProperties 方法

定義

新增或移除要用於主鍵的屬性。

protected virtual void ProcessKeyProperties (System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> keyProperties, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
abstract member ProcessKeyProperties : System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> unit
override this.ProcessKeyProperties : System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> unit
Protected Overridable Sub ProcessKeyProperties (keyProperties As IList(Of IConventionProperty), entityType As IConventionEntityType)

參數

keyProperties
IList<IConventionProperty>

將用來設定索引鍵的屬性。

entityType
IConventionEntityType

正在設定的實體型別。

適用於