KeyDiscoveryConvention.MatchKeyProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework