語言

OneToOneConstraintIntroductionConvention 類別

定義

慣例是將相依實體類型的主鍵配置為外鍵,並以一對一的關係。

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)
繼承
OneToOneConstraintIntroductionConvention
實作

建構函式

名稱 Description
OneToOneConstraintIntroductionConvention()

慣例是將相依實體類型的主鍵配置為外鍵,並以一對一的關係。

方法

名稱 Description
Apply(AssociationType, DbModel)

將此慣例應用於模型中的一個項目。

適用於