NavigationAttributeConventionBase<TAttribute> Класс

Определение

Базовый тип для соглашений, которые выполняют настройку на основе атрибута, применяемого к навигации.

public abstract class NavigationAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeMemberIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention where TAttribute : Attribute
public abstract class NavigationAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeMemberIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention where TAttribute : Attribute
public abstract class NavigationAttributeConventionBase<TAttribute> where TAttribute : Attribute
type NavigationAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeIgnoredConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface INavigationAddedConvention
    interface IEntityTypeMemberIgnoredConvention
type NavigationAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeIgnoredConvention
    interface IEntityTypeRemovedConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IEntityTypeMemberIgnoredConvention
    interface INavigationAddedConvention
    interface ISkipNavigationAddedConvention
    interface IForeignKeyPrincipalEndChangedConvention
type NavigationAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
Public MustInherit Class NavigationAttributeConventionBase(Of TAttribute)
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeIgnoredConvention, IEntityTypeMemberIgnoredConvention, INavigationAddedConvention
Public MustInherit Class NavigationAttributeConventionBase(Of TAttribute)
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeIgnoredConvention, IEntityTypeMemberIgnoredConvention, IEntityTypeRemovedConvention, IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention, ISkipNavigationAddedConvention
Public MustInherit Class NavigationAttributeConventionBase(Of TAttribute)

Параметры типа

TAttribute

Тип атрибута для поиска.

Наследование
NavigationAttributeConventionBase<TAttribute>
Производный
Реализации

Комментарии

Дополнительные сведения и примеры см. в разделе Соглашения о создании моделей .

Конструкторы

NavigationAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

Создает новый экземпляр NavigationAttributeConventionBase<TAttribute>.

Свойства

Dependencies

Зависимости для этой службы.

Методы

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation)

Возвращает атрибуты, применяемые к заданной навигации.

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation)

Возвращает атрибуты, примененные к заданной навигации skip.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Вызывается после добавления типа сущности в модель.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Вызывается для каждого свойства навигации, имеющего атрибут после добавления типа сущности в модель.

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Вызывается после изменения базового типа сущности.

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Вызывается для каждого свойства навигации, имеющего атрибут после изменения базового типа сущности.

ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Вызывается после пропуска типа сущности.

ProcessEntityTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

Вызывается для каждого свойства навигации, имеющего атрибут после игнорирования типа сущности.

ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<String>)

Вызывается после пропуска свойства навигации с атрибутом .

ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Вызывается после пропуска члена типа сущности.

ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

Вызывается после удаления типа сущности из модели.

ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Вызывается для каждого свойства навигации, имеющего атрибут после удаления типа сущности.

ProcessEntityTypeRemoved(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Вызывается для каждого свойства навигации, имеющего атрибут после удаления типа сущности.

ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Вызывается после изменения основного конца внешнего ключа.

ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<TAttribute>, IEnumerable<TAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

Вызывается после изменения основного конца внешнего ключа.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Вызывается после добавления навигации к типу сущности.

ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)

Вызывается после добавления свойства навигации с атрибутом к типу сущности.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Вызывается после добавления навигации к типу сущности.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, TAttribute, IConventionContext<IConventionNavigation>)

Вызывается после добавления свойства навигации с атрибутом к типу сущности.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Вызывается после добавления навигации skip к типу сущности.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Вызывается после добавления свойства навигации skip с атрибутом к типу сущности.

ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Вызывается после пропуска типа сущности.

ProcessTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

Вызывается для каждого свойства навигации, имеющего атрибут после игнорирования типа сущности.

Применяется к