KeyDiscoveryConvention Class
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.
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
KeyDiscoveryConvention() |
Methods
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
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