Langue

ModelValidator.ValidateForeignKeyPropertyInKey Méthode

Définition

Vérifie que les propriétés de clé étrangère ne font pas partie d’une clé héritée qui provoquerait des problèmes.

protected virtual void ValidateForeignKeyPropertyInKey(Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateForeignKeyPropertyInKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateForeignKeyPropertyInKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateForeignKeyPropertyInKey (foreignKey As IForeignKey, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

Paramètres

foreignKey
IForeignKey

Clé étrangère à valider.

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

Enregistreur d’événements à utiliser.

S’applique à