KeyDiscoveryConvention.ShouldDiscoverKeyProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
決定是否應該為該實體類型發現關鍵屬性。
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。