Sprache

CosmosInversePropertyAttributeConvention Klasse

Definition

Eine Konvention, die die umgekehrte Navigationseigenschaft basierend auf der InversePropertyAttribute angegebenen auf der anderen Navigationseigenschaft konfiguriert. Für alle Navigationen wird davon ausgegangen, dass sie auf entitätseigene Entitätstypen für Cosmos abzielen.

[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
Vererbung
Attribute

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen und zugreifen auf Azure Cosmos DB mit EF Core.

Konstruktoren

Name Beschreibung
CosmosInversePropertyAttributeConvention(ProviderConventionSetBuilderDependencies)

Erstellt eine neue Instanz von InversePropertyAttributeConvention.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)

Methoden

Name Beschreibung
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wird aufgerufen, nachdem dem Modell ein Entitätstyp hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, InversePropertyAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut hat, nachdem ein Entitätstyp dem Modell hinzugefügt wurde.

(Geerbt von InversePropertyAttributeConvention)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut hat, nachdem ein Entitätstyp dem Modell hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Wird aufgerufen, nachdem sich der Basistyp eines Entitätstyps geändert hat.

(Geerbt von InversePropertyAttributeConvention)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, MemberInfo, Type, InversePropertyAttribute, IConventionContext<IConventionEntityType>)

Wird für jede Navigationseigenschaft aufgerufen, die über ein Attribut verfügt, nachdem der Basistyp für einen Entitätstyp geändert wurde.

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

Wird für jede Navigationseigenschaft aufgerufen, die über ein Attribut verfügt, nachdem der Basistyp für einen Entitätstyp geändert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Wird aufgerufen, nachdem ein Entitätstyp ignoriert wurde.

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

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, MemberInfo, Type, InversePropertyAttribute, IConventionContext<String>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut ignoriert wurde.

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

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Wird aufgerufen, nachdem ein Entitätstypelement ignoriert wurde.

(Geerbt von InversePropertyAttributeConvention)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

Wird aufgerufen, nachdem ein Entitätstyp aus dem Modell entfernt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, MemberInfo, Type, InversePropertyAttribute, IConventionContext<IConventionEntityType>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp entfernt wurde.

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

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp entfernt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Wird aufgerufen, nachdem das Prinzipalende eines Fremdschlüssels geändert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<TAttribute>, IEnumerable<TAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

Wird aufgerufen, nachdem das Prinzipalende eines Fremdschlüssels geändert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, wenn ein Modell abgeschlossen wird.

(Geerbt von InversePropertyAttributeConvention)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Wird aufgerufen, nachdem dem Entitätstyp eine Navigation hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, InversePropertyAttribute, IConventionContext<IConventionNavigationBuilder>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

(Geerbt von InversePropertyAttributeConvention)
ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Wird aufgerufen, nachdem der Entitätstyp eine Übersprungnavigation hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Wird aufgerufen, nachdem eine Skip-Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Wird aufgerufen, nachdem ein Entitätstyp ignoriert wurde.

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

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
TryGetTargetEntityTypeBuilder(IConventionEntityTypeBuilder, Type, MemberInfo, Boolean)

Sucht oder versucht, ein Entitätstypziel für das angegebene Navigationselement zu erstellen.

Gilt für: