RequiredNavigationAttributeConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
type RequiredNavigationAttributeConvention = class
inherit NavigationAttributeConventionBase<RequiredAttribute>
type RequiredNavigationAttributeConvention = class
inherit NavigationAttributeConventionBase<RequiredAttribute>
interface INavigationAddedConvention
interface IConvention
interface ISkipNavigationAddedConvention
interface IForeignKeyPrincipalEndChangedConvention
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
Implements IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention, ISkipNavigationAddedConvention
繼承
RequiredNavigationAttributeConvention
實作
如需詳細資訊和範例,請參閱 模型建置慣例 。
建構函式
屬性
方法
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)
在實體類型新增至模型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)
針對實體類型新增至模型之後具有屬性的每個導覽屬性呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder,
IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)
在實體類型的基底類型變更之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder,
IConventionEntityType, IConventionEntityType, MemberInfo, Type,
TAttribute, IConventionContext<IConventionEntityType>)
在實體類型的基底類型變更之後,針對具有屬性的每個導覽屬性呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)
忽略實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)
忽略實體類型之後,針對具有屬性的每個導覽屬性呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<String>)
忽略具有屬性的導覽屬性之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)
忽略實體類型成員之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)
從模型中移除實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)
針對移除實體類型之後具有屬性的每個導覽屬性呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessEntityTypeRemoved(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)
針對移除實體類型之後具有屬性的每個導覽屬性呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)
在外鍵的主體結尾變更之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder,
IEnumerable<RequiredAttribute>, IEnumerable<RequiredAttribute>,
IConventionContext<IConventionForeignKeyBuilder>)
如果 RequiredAttribute 套用至主體實體類型,則會視需要設定關聯性主體端的慣例。
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder,
IEnumerable<TAttribute>, IEnumerable<TAttribute>, IConventionContext<IConventionForeignKeyBuilder>)
在外鍵的主體結尾變更之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)
在導覽新增至實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessNavigationAdded(IConventionNavigationBuilder, RequiredAttribute, IConventionContext<IConventionNavigationBuilder>)
如果 RequiredAttribute 套用至主體實體類型,則會視需要設定關聯性主體端的慣例。
ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)
在具有屬性的導覽屬性新增至實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)
在導覽新增至實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, RequiredAttribute, IConventionContext<IConventionNavigation>)
在具有屬性的導覽屬性新增至實體類型之後呼叫。
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, TAttribute, IConventionContext<IConventionNavigation>)
在具有屬性的導覽屬性新增至實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)
在略過導覽新增至實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, RequiredAttribute, IConventionContext<IConventionSkipNavigationBuilder>)
如果 RequiredAttribute 套用至主體實體類型,則會視需要設定關聯性主體端的慣例。
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)
在具有屬性的略過導覽屬性新增至實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)
忽略實體類型之後呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
ProcessTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)
忽略實體類型之後,針對具有屬性的每個導覽屬性呼叫。
(繼承來源 NavigationAttributeConventionBase<TAttribute> )
適用於