Share via


ForeignKeyDiscoveryConvention Class

Definition

Base class for conventions that discover foreign key properties.

public abstract class ForeignKeyDiscoveryConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.AssociationType>
type ForeignKeyDiscoveryConvention = class
    interface IConceptualModelConvention<AssociationType>
    interface IConvention
Public MustInherit Class ForeignKeyDiscoveryConvention
Implements IConceptualModelConvention(Of AssociationType)
Inheritance
ForeignKeyDiscoveryConvention
Derived
Implements

Constructors

ForeignKeyDiscoveryConvention()

Properties

SupportsMultipleAssociations

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

Methods

Apply(AssociationType, DbModel)

Applies this convention to an item in the model.

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

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

Applies to