CosmosRelationshipDiscoveryConvention Klasa

Definicja

Konwencja, która konfiguruje relacje między typami jednostek na podstawie właściwości nawigacji, o ile nie ma niejednoznaczności, do której jest odpowiedni odwrotny nawigacja. Przyjmuje się, że wszystkie nawigacje są przeznaczone dla typów jednostek należących do usługi Cosmos.

public class CosmosRelationshipDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationshipDiscoveryConvention
type CosmosRelationshipDiscoveryConvention = class
    inherit RelationshipDiscoveryConvention
Public Class CosmosRelationshipDiscoveryConvention
Inherits RelationshipDiscoveryConvention
Dziedziczenie
CosmosRelationshipDiscoveryConvention

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

CosmosRelationshipDiscoveryConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy RelationshipDiscoveryConvention.

Właściwości

Dependencies

Zależności dla tej usługi.

(Odziedziczone po RelationshipDiscoveryConvention)

Metody

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływane po dodaniu typu jednostki do modelu.

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Wywoływane po zmianie typu podstawowego typu jednostki.

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

Wywoływane po zignorowaniu typu jednostki.

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

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

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessForeignKeyNullNavigationSet(IConventionForeignKeyBuilder, Boolean, IConventionContext<IConventionNavigation>)

Wywoływana po ustawieniu nawigacji na null wartość w kluczu obcym.

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

Wywoływana po zmianie wartości własności klucza obcego.

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessForeignKeyOwnershipChanged(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

Wywoływana po zmianie wartości własności klucza obcego.

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

Wywoływane po usunięciu klucza obcego.

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

Wywoływane po dodaniu nawigacji do typu jednostki.

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Wywoływane po dodaniu nawigacji do typu jednostki.

(Odziedziczone po RelationshipDiscoveryConvention)
ProcessNavigationRemoved(IConventionEntityTypeBuilder, IConventionEntityTypeBuilder, String, MemberInfo, IConventionContext<String>)

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

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

Wywoływane po zignorowaniu typu jednostki.

(Odziedziczone po RelationshipDiscoveryConvention)
ShouldBeOwned(Type, IConventionModel)

Zwraca wartość wskazującą, czy dany typ jednostki powinien zostać dodany jako właściciel, jeśli nie znajduje się obecnie w modelu.

ShouldBeOwnedType(Type, IConventionModel)

Zwraca wartość wskazującą, czy dany typ jednostki powinien zostać dodany jako właściciel, jeśli nie znajduje się obecnie w modelu.

TryGetTargetEntityTypeBuilder(IConventionEntityTypeBuilder, Type, MemberInfo, Nullable<Boolean>, Boolean)

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

(Odziedziczone po RelationshipDiscoveryConvention)

Dotyczy