This documentation is archived and is not being maintained.
IdKeyDiscoveryConvention Class
Convention to detect primary key properties.
System.Object
System.Data.Entity.ModelConfiguration.Conventions.IdKeyDiscoveryConvention
Namespace:
System.Data.Entity.ModelConfiguration.Conventions Assembly:
EntityFramework (in EntityFramework.dll)
'Declaration
Public NotInheritable Class IdKeyDiscoveryConvention _
Implements IConvention
'Usage
Dim instance As IdKeyDiscoveryConvention
The IdKeyDiscoveryConvention type exposes the following members.
Primary key detection is case insensitive. Recognized naming patterns are, in order of precedence:
'Id'
[type name]Id
Any public
static (
Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.