RelationalModelValidator.ValidateData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ValidateData(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates the mapping/configuration of data (e.g. seed data) in the model. |
| ValidateData(IEntityType, Dictionary<IKey,IIdentityMap>, Boolean, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates seed data for an entity type. |
ValidateData(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
- Source:
- RelationalModelValidator.cs
- Source:
- RelationalModelValidator.cs
- Source:
- RelationalModelValidator.cs
Validates the mapping/configuration of data (e.g. seed data) in the model.
protected override void ValidateData(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
override this.ValidateData : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overrides Sub ValidateData (model As IModel, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- model
- IModel
The model to validate.
The logger to use.
Applies to
ValidateData(IEntityType, Dictionary<IKey,IIdentityMap>, Boolean, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
- Source:
- RelationalModelValidator.cs
Validates seed data for an entity type.
protected override void ValidateData(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.Dictionary<Microsoft.EntityFrameworkCore.Metadata.IKey,Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IIdentityMap> identityMaps, bool sensitiveDataLogged, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
override this.ValidateData : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.Dictionary<Microsoft.EntityFrameworkCore.Metadata.IKey, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IIdentityMap> * bool * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overrides Sub ValidateData (entityType As IEntityType, identityMaps As Dictionary(Of IKey, IIdentityMap), sensitiveDataLogged As Boolean, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- entityType
- IEntityType
The entity type to validate.
- identityMaps
- Dictionary<IKey,Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IIdentityMap>
Shared identity maps for detecting duplicates.
- sensitiveDataLogged
- Boolean
Whether sensitive data should be logged.
The logger to use.