Langue

RelationalModelValidator.ValidateOwnedEntityMappedToJsonCollection Méthode

Définition

Enregistre un avertissement si un type d’entité appartenant est mappé au format JSON en tant que collection, qui utilise une clé ordinale synthétisée. Ce mappage est obsolète ; le type doit être mappé en tant que collection de types complexe à la place.

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

Paramètres

entityType
IEntityType

Type d’entité à valider.

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

Enregistreur d’événements à utiliser.

S’applique à