語言

CosmosKeyDiscoveryConvention.ProcessKeyProperties 方法

定義

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

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

參數

keyProperties
IList<IConventionProperty>

這些屬性將用於設定金鑰。

entityType
IConventionEntityType

正在設定的實體類型。

適用於