Share via


KeyDiscoveryConvention Class

Definition

Base class for conventions that discover primary key properties.

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)
Inheritance
KeyDiscoveryConvention
Derived
Implements

Constructors

Name Description
KeyDiscoveryConvention()

Methods

Name Description
Apply(EntityType, DbModel)

Applies this convention to an item in the model.

MatchKeyProperty(EntityType, IEnumerable<EdmProperty>)

When overriden returns the subset of properties that will be part of the primary key.

Applies to