KeyDiscoveryConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
探索主鍵屬性之慣例的基類。
public abstract class KeyDiscoveryConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EntityType>
type KeyDiscoveryConvention = class
interface IConceptualModelConvention<EntityType>
interface IConvention
Public MustInherit Class KeyDiscoveryConvention
Implements IConceptualModelConvention(Of EntityType)
- 繼承
-
KeyDiscoveryConvention
- 衍生
- 實作
建構函式
KeyDiscoveryConvention() |
探索主鍵屬性之慣例的基類。 |
方法
Apply(EntityType, DbModel) |
將此慣例套用至模型中的專案。 |
MatchKeyProperty(EntityType, IEnumerable<EdmProperty>) |
覆寫時,會傳回將屬於主鍵一部分的屬性子集。 |