Share via


NavigationPropertyNameForeignKeyDiscoveryConvention Class

Definition

Convention to discover foreign key properties whose names are a combination of the dependent navigation property name and the principal type primary key property name(s).

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

Constructors

Name Description
NavigationPropertyNameForeignKeyDiscoveryConvention()

Properties

Name Description
SupportsMultipleAssociations

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

Methods

Name Description
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.

Applies to