Partager via


ManyToManyJoinEntityTypeConvention Classe

Définition

Une convention qui recherche la correspondance des navigations d’ignorer et crée automatiquement une entité de jointure plusieurs-à-plusieurs avec des clés étrangères appropriées, définit les deux navigations skip correspondantes pour utiliser ces clés étrangères.

public class ManyToManyJoinEntityTypeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationInverseChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationRemovedConvention
type ManyToManyJoinEntityTypeConvention = class
    interface ISkipNavigationAddedConvention
    interface IConvention
    interface ISkipNavigationInverseChangedConvention
    interface ISkipNavigationForeignKeyChangedConvention
    interface ISkipNavigationRemovedConvention
Public Class ManyToManyJoinEntityTypeConvention
Implements ISkipNavigationAddedConvention, ISkipNavigationForeignKeyChangedConvention, ISkipNavigationInverseChangedConvention, ISkipNavigationRemovedConvention
Héritage
ManyToManyJoinEntityTypeConvention
Dérivé
Implémente

Remarques

Pour plus d’informations et d’exemples, consultez Conventions de génération de modèles.

Constructeurs

ManyToManyJoinEntityTypeConvention(ProviderConventionSetBuilderDependencies)

Crée une instance de ManyToManyJoinEntityTypeConvention.

Propriétés

Dependencies

Dépendances pour ce service.

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 le saut de navigation donné.

GenerateJoinTypeName(IConventionSkipNavigation)

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

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Appelée après l’ajout d’une navigation skip au type d’entité.

ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

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

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

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

ProcessSkipNavigationRemoved(IConventionEntityTypeBuilder, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Appelé après la suppression d’une navigation skip du type d’entité.

ShouldCreateJoinType(IConventionSkipNavigation)

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

S’applique à