Language

RelationalModelValidator.ValidateOwnedEntityMappedToJsonCollection Method

Definition

Logs a warning if an owned entity type is mapped to JSON as a collection, which uses a synthesized ordinal key. This mapping is obsolete; the type should be mapped as a complex type collection instead.

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))

Parameters

entityType
IEntityType

The entity type to validate.

Applies to