共用方式為


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
實作

建構函式

OneToOneConstraintIntroductionConvention()

將相依實體類型的主鍵 () 設定為一對一關聯性中的外鍵 () 。

方法

Apply(AssociationType, DbModel)

將此慣例套用至模型中的專案。

適用於