語言

KeyDiscoveryConvention.ShouldDiscoverKeyProperties 方法

定義

決定是否應該為該實體類型發現關鍵屬性。

protected virtual bool ShouldDiscoverKeyProperties(Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
abstract member ShouldDiscoverKeyProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> bool
override this.ShouldDiscoverKeyProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> bool
Protected Overridable Function ShouldDiscoverKeyProperties (entityType As IConventionEntityType) As Boolean

參數

entityType
IConventionEntityType

實體類型。

傳回

true 若需發現關鍵性質,否則 false。

適用於