OneToOneConstraintIntroductionConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將相依實體類型的主鍵 () 設定為一對一關聯性中的外鍵 () 。
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) |
將此慣例套用至模型中的專案。 |