Sdílet prostřednictvím


OneToOneConstraintIntroductionConvention Třída

Definice

Konvence konfiguruje primární klíče závislého typu entity jako cizí klíče ve vztahu 1:1.

public class OneToOneConstraintIntroductionConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.AssociationType>
type OneToOneConstraintIntroductionConvention = class
    interface IConceptualModelConvention<AssociationType>
    interface IConvention
Public Class OneToOneConstraintIntroductionConvention
Implements IConceptualModelConvention(Of AssociationType)
Dědičnost
OneToOneConstraintIntroductionConvention
Implementuje

Konstruktory

OneToOneConstraintIntroductionConvention()

Konvence konfiguruje primární klíče závislého typu entity jako cizí klíče ve vztahu 1:1.

Metody

Apply(AssociationType, DbModel)

Použije tuto konvenci na položku v modelu.

Platí pro