CosmosInversePropertyAttributeConvention Klasa

Definicja

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

public class CosmosInversePropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InversePropertyAttributeConvention
type CosmosInversePropertyAttributeConvention = class
    inherit InversePropertyAttributeConvention
Public Class CosmosInversePropertyAttributeConvention
Inherits InversePropertyAttributeConvention
Dziedziczenie

Uwagi

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

Konstruktory

CosmosInversePropertyAttributeConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy InversePropertyAttributeConvention.

Właściwości

Dependencies

Zależności dla tej usługi.

(Odziedziczone po NavigationAttributeConventionBase<TAttribute>)

Metody

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływane 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ływane 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 zignorowaniu typu jednostki.

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

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

(Odziedziczone po InversePropertyAttributeConvention)
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ływane 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>)

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

(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>)
ProcessEntityTypeRemoved(IConventionModelBuilder, Type, MemberInfo, Type, InversePropertyAttribute, IConventionContext<IConventionEntityType>)

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

(Odziedziczone po InversePropertyAttributeConvention)
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ływane po zmianie głównego końca klucza obcego.

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

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

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

Wywoływane po sfinalizowaniu modelu.

(Odziedziczone po InversePropertyAttributeConvention)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wywoływana, gdy model jest finalizowany.

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

Wywoływane po dodaniu nawigacji do typu jednostki.

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

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

(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>)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Wywoływane po dodaniu nawigacji do typu jednostki.

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

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

(Odziedziczone po InversePropertyAttributeConvention)
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, 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 zignorowaniu typu jednostki.

(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