NavigationAttributeConventionBase<TAttribute> Klasa

Definicja

Podstawowy typ konwencji, które wykonują konfigurację na podstawie atrybutu zastosowanego do nawigacji.

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)

Parametry typu

TAttribute

Typ atrybutu do wyszukania.

Dziedziczenie
NavigationAttributeConventionBase<TAttribute>
Pochodne
Implementuje

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Konwencje tworzenia modeli .

Konstruktory

NavigationAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy NavigationAttributeConventionBase<TAttribute>.

Właściwości

Dependencies

Zależności dla tej usługi.

Metody

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionNavigation)

Zwraca atrybuty zastosowane do danej nawigacji.

GetAttributes<TCustomAttribute>(IConventionEntityType, IConventionSkipNavigation)

Zwraca atrybuty zastosowane do danej nawigacji pomiń.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływane po dodaniu typu jednostki do modelu.

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

Wywoływana dla każdej właściwości nawigacji, która ma atrybut po dodaniu typu jednostki do modelu.

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

Wywoływane po zmianie typu podstawowego typu jednostki.

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

Wywoływana dla każdej właściwości nawigacji, która ma atrybut po zmianie typu podstawowego dla typu jednostki.

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

Wywoływane po zignorowaniu typu jednostki.

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

Wywoływana dla każdej właściwości nawigacji, która ma atrybut po zignorowaniu typu jednostki.

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

Wywoływana po właściwości nawigacji, która ma atrybut, jest ignorowana.

ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Wywoływane po zignorowaniu elementu członkowskiego typu jednostki.

ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

Wywoływane po usunięciu typu jednostki z modelu.

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

Wywoływana dla każdej właściwości nawigacji, która ma atrybut po usunięciu typu jednostki.

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

Wywoływana dla każdej właściwości nawigacji, która ma atrybut po usunięciu typu jednostki.

ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Wywoływane po zmianie głównego końca klucza obcego.

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

Wywoływane po zmianie głównego końca klucza obcego.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Wywoływane po dodaniu nawigacji do typu jednostki.

ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)

Wywoływana po właściwości nawigacji, która ma atrybut, jest dodawana do typu jednostki.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Wywoływane po dodaniu nawigacji do typu jednostki.

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

Wywoływana po właściwości nawigacji, która ma atrybut, jest dodawana do typu jednostki.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Wywoływana po dodaniu nawigacji pomiń do typu jednostki.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Wywoływana po pomiń właściwość nawigacji, która ma atrybut, jest dodawana do typu jednostki.

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

Wywoływane po zignorowaniu typu jednostki.

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

Wywoływana dla każdej właściwości nawigacji, która ma atrybut po zignorowaniu typu jednostki.

Dotyczy