KeyDiscoveryConvention.MatchKeyProperty Method

Definition

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

protected abstract System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.EdmProperty> MatchKeyProperty (System.Data.Entity.Core.Metadata.Edm.EntityType entityType, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.EdmProperty> primitiveProperties);
abstract member MatchKeyProperty : System.Data.Entity.Core.Metadata.Edm.EntityType * seq<System.Data.Entity.Core.Metadata.Edm.EdmProperty> -> seq<System.Data.Entity.Core.Metadata.Edm.EdmProperty>

Parameters

entityType
EntityType

The entity type.

primitiveProperties
IEnumerable<EdmProperty>

The primitive types of the entities

Returns

The properties that should be part of the primary key.

Applies to