IdKeyDiscoveryConvention 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.
Convention to detect primary key properties. Recognized naming patterns in order of precedence are:
- 'Id'
- [type name]Id Primary key detection is case insensitive.
public class IdKeyDiscoveryConvention : System.Data.Entity.ModelConfiguration.Conventions.KeyDiscoveryConvention
type IdKeyDiscoveryConvention = class
inherit KeyDiscoveryConvention
Public Class IdKeyDiscoveryConvention
Inherits KeyDiscoveryConvention
- Inheritance
- Inheritance
-
IdKeyDiscoveryConvention
Constructors
IdKeyDiscoveryConvention() |
Methods
Apply(EntityType, DbModel) |
Applies this convention to an item in the model. (Inherited from KeyDiscoveryConvention) |
MatchKeyProperty(EntityType, IEnumerable<EdmProperty>) |
When overriden returns the subset of properties that will be part of the primary key. |
MatchKeyProperty(EntityType, IEnumerable<EdmProperty>) |
When overriden returns the subset of properties that will be part of the primary key. (Inherited from KeyDiscoveryConvention) |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for