Język

CosmosInversePropertyAttributeConvention Klasa

Definicja

Konwencja, która konfiguruje odwrotną właściwość nawigacji na InversePropertyAttribute podstawie określonej na innej właściwości nawigacji. Zakłada się, że wszystkie nawigacje są przeznaczone dla należących do niego typów jednostek dla usługi Cosmos.

[System.Runtime.CompilerServices.Nullable(0)]
public class CosmosInversePropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InversePropertyAttributeConvention
public class CosmosInversePropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InversePropertyAttributeConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosInversePropertyAttributeConvention = class
    inherit InversePropertyAttributeConvention
type CosmosInversePropertyAttributeConvention = class
    inherit InversePropertyAttributeConvention
Public Class CosmosInversePropertyAttributeConvention
Inherits InversePropertyAttributeConvention
Dziedziczenie
Atrybuty

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Konwencje tworzenia modeli i Uzyskiwanie dostępu do Azure Cosmos DB za pomocą programu EF Core.

Konstruktory

Nazwisko Opis
CosmosInversePropertyAttributeConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy InversePropertyAttributeConvention.

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, InversePropertyAttribute, IConventionContext<IConventionEntityTypeBuilder>)

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

(Odziedziczone po InversePropertyAttributeConvention)
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 InversePropertyAttributeConvention)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, MemberInfo, Type, InversePropertyAttribute, 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 InversePropertyAttributeConvention)
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, InversePropertyAttribute, IConventionContext<String>)

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

(Odziedziczone po InversePropertyAttributeConvention)
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 InversePropertyAttributeConvention)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

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

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

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

(Odziedziczone po InversePropertyAttributeConvention)
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>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

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

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

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wywoływana, gdy model jest finalizowany.

(Odziedziczone po InversePropertyAttributeConvention)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Wywoływana po dodaniu nawigacji do typu jednostki.

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

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

(Odziedziczone po InversePropertyAttributeConvention)
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>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

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

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)
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>)
TryGetTargetEntityTypeBuilder(IConventionEntityTypeBuilder, Type, MemberInfo, Boolean)

Znajduje lub próbuje utworzyć element docelowy typu jednostki dla danego elementu członkowskiego nawigacji.

Dotyczy