Partager via


CosmosManyToManyJoinEntityTypeConvention Classe

Définition

Convention qui crée un type d’entité de jointure pour une relation plusieurs-à-plusieurs et y ajoute une clé de partition si les types associés en partagent un.

public class CosmosManyToManyJoinEntityTypeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ManyToManyJoinEntityTypeConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention
type CosmosManyToManyJoinEntityTypeConvention = class
    inherit ManyToManyJoinEntityTypeConvention
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
Public Class CosmosManyToManyJoinEntityTypeConvention
Inherits ManyToManyJoinEntityTypeConvention
Implements IEntityTypeAnnotationChangedConvention
Héritage
CosmosManyToManyJoinEntityTypeConvention
Implémente

Remarques

Pour plus d’informations et d’exemples, consultez Conventions de création de modèles et Accès à Azure Cosmos DB avec EF Core .

Constructeurs

CosmosManyToManyJoinEntityTypeConvention(ProviderConventionSetBuilderDependencies)

Crée une instance de CosmosManyToManyJoinEntityTypeConvention.

Propriétés

Dependencies

Dépendances pour ce service.

(Hérité de ManyToManyJoinEntityTypeConvention)

Méthodes

CreateJoinEntityType(String, IConventionSkipNavigation)

Créez un type d’entité de jointure et configure les clés étrangères correspondantes.

CreateSkipNavigationForeignKey(IConventionSkipNavigation, IConventionEntityTypeBuilder)

Crée une clé étrangère sur le type d’entité donné à utiliser par la navigation de saut donnée.

(Hérité de ManyToManyJoinEntityTypeConvention)
GenerateJoinTypeName(IConventionSkipNavigation)

Génère un nom unique pour le nouveau type d’entité conjointe.

(Hérité de ManyToManyJoinEntityTypeConvention)
ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Appelé après la modification d’une annotation sur un type d’entité.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Appelé après l’ajout d’un saut de navigation au type d’entité.

(Hérité de ManyToManyJoinEntityTypeConvention)
ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

Convention qui crée un type d’entité de jointure pour une relation plusieurs-à-plusieurs et y ajoute une clé de partition si les types associés en partagent un.

ProcessSkipNavigationInverseChanged(IConventionSkipNavigationBuilder, IConventionSkipNavigation, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Appelé après la modification d’un inverse de navigation skip.

(Hérité de ManyToManyJoinEntityTypeConvention)
ProcessSkipNavigationRemoved(IConventionEntityTypeBuilder, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Appelé après la suppression d’un saut de navigation du type d’entité.

(Hérité de ManyToManyJoinEntityTypeConvention)
ShouldCreateJoinType(IConventionSkipNavigation)

Vérifie si un nouveau type d’entité de jointure est nécessaire.

(Hérité de ManyToManyJoinEntityTypeConvention)

S’applique à