Język

RequiredNavigationAttributeConvention Klasa

Definicja

Konwencja, która konfiguruje główną stronę relacji zgodnie z wymaganiami, jeśli RequiredAttribute właściwość nawigacji jest stosowana do typu jednostki głównej.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
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
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
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RequiredNavigationAttributeConvention = class
    inherit NavigationAttributeConventionBase<RequiredAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface ISkipNavigationAddedConvention
    interface IForeignKeyPrincipalEndChangedConvention
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)
Implements IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention, ISkipNavigationAddedConvention
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
Dziedziczenie
RequiredNavigationAttributeConvention
Atrybuty
Implementuje

Uwagi

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

Konstruktory

Nazwisko Opis
RequiredNavigationAttributeConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy RequiredNavigationAttributeConvention.

Właściwości

Nazwisko Opis
Dependencies

Zależności dla tej usługi.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)

Metody

Nazwisko Opis
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana po dodaniu typu jednostki do modelu.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Wywoływana po zmianie typu podstawowego typu jednostki.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Wywoływane po typie jednostki jest ignorowane.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
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.

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

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<RequiredAttribute>, IEnumerable<RequiredAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

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

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

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Wywoływana po dodaniu nawigacji do typu jednostki.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, RequiredAttribute, IConventionContext<IConventionNavigationBuilder>)

Wywoływana po właściwości nawigacji, która ma atrybut, jest dodawana 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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Wywoływana po dodaniu nawigacji do typu jednostki.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, RequiredAttribute, IConventionContext<IConventionNavigation>)

Wywoływana po właściwości nawigacji, która ma atrybut, jest dodawana 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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, RequiredAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Wywoływana po pomiń właściwość nawigacji, która ma atrybut, jest dodawana 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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Wywoływane po typie jednostki jest ignorowane.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
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.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)

Dotyczy