TypeNameForeignKeyDiscoveryConvention Class

Definition

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

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

Constructors

TypeNameForeignKeyDiscoveryConvention()

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