IdKeyDiscoveryConvention IdKeyDiscoveryConvention IdKeyDiscoveryConvention Class

Definition

Convention to detect primary key properties. Recognized naming patterns in order of precedence are:

  1. 'Id'
  2. [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
IdKeyDiscoveryConventionIdKeyDiscoveryConventionIdKeyDiscoveryConvention

Constructors

IdKeyDiscoveryConvention() IdKeyDiscoveryConvention() IdKeyDiscoveryConvention()

Methods

MatchKeyProperty(EntityType, IEnumerable<EdmProperty>) MatchKeyProperty(EntityType, IEnumerable<EdmProperty>) MatchKeyProperty(EntityType, IEnumerable<EdmProperty>)

Applies to