Share via


PrimaryKeyNameForeignKeyDiscoveryConvention Class

Definition

Convention to discover foreign key properties whose names match the principal type primary key property name(s).

public class PrimaryKeyNameForeignKeyDiscoveryConvention : System.Data.Entity.ModelConfiguration.Conventions.ForeignKeyDiscoveryConvention
type PrimaryKeyNameForeignKeyDiscoveryConvention = class
    inherit ForeignKeyDiscoveryConvention
Public Class PrimaryKeyNameForeignKeyDiscoveryConvention
Inherits ForeignKeyDiscoveryConvention
Inheritance
PrimaryKeyNameForeignKeyDiscoveryConvention
Inheritance
PrimaryKeyNameForeignKeyDiscoveryConvention

Constructors

PrimaryKeyNameForeignKeyDiscoveryConvention()

Properties

SupportsMultipleAssociations

Returns true if the convention supports pairs of entity types that have multiple associations defined between them.

(Inherited from ForeignKeyDiscoveryConvention)

Methods

Apply(AssociationType, DbModel)

Applies this convention to an item in the model.

(Inherited from ForeignKeyDiscoveryConvention)
MatchDependentKeyProperty(AssociationType, AssociationEndMember, EdmProperty, EntityType, EdmProperty)

When overriden returns true if dependentProperty should be part of the foreign key.

MatchDependentKeyProperty(AssociationType, AssociationEndMember, EdmProperty, EntityType, EdmProperty)

When overriden returns true if dependentProperty should be part of the foreign key.

(Inherited from ForeignKeyDiscoveryConvention)

Applies to