KeyDiscoveryConvention.MatchKeyProperty Method (EntityType, IEnumerable<EdmProperty>)

 

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

Namespace:   System.Data.Entity.ModelConfiguration.Conventions
Assembly:  EntityFramework (in EntityFramework.dll)

protected abstract IEnumerable<EdmProperty> MatchKeyProperty(
	EntityType entityType,
	IEnumerable<EdmProperty> primitiveProperties
)

Parameters

entityType
Type: System.Data.Entity.Core.Metadata.Edm.EntityType

The entity type.

primitiveProperties
Type: System.Collections.Generic.IEnumerable<EdmProperty>

The primitive types of the entities.

Return Value

Type: System.Collections.Generic.IEnumerable<EdmProperty>

The properties that should be part of the primary key.