Lenguaje

RelationalModelValidator Class

Definition

The validator that enforces rules common for all relational providers.

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalModelValidator : Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator
public class RelationalModelValidator : Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalModelValidator = class
    inherit ModelValidator
type RelationalModelValidator = class
    inherit ModelValidator
Public Class RelationalModelValidator
Inherits ModelValidator
Inheritance
RelationalModelValidator
Attributes

Remarks

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

See Implementation of database providers and extensions for more information and examples.

Constructors

Name Description
RelationalModelValidator(ModelValidatorDependencies, RelationalModelValidatorDependencies)

The validator that enforces rules common for all relational providers.

Properties

Name Description
Dependencies

Dependencies for this service.

(Inherited from ModelValidator)
RelationalDependencies

Relational provider-specific dependencies for this service.

TypeMapper
Obsolete.

Gets the type mapper.

Methods

Name Description
GetDefaultColumnValue(IProperty, StoreObjectIdentifier)

Returns the object that is used as the default value for the column the property is mapped to.

IsOwned(Type, IConventionModel)

Returns a value indicating whether that target CLR type would correspond to an owned entity type.

(Inherited from ModelValidator)
IsOwned(Type, IModel)

Returns a value indicating whether that target CLR type would correspond to an owned entity type.

(Inherited from ModelValidator)
IsRedundant(IForeignKey)

Returns a value indicating whether the given foreign key is redundant.

LogShadowProperties(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Logs all shadow properties for an entity type.

(Inherited from ModelValidator)
LogShadowProperties(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Logs all shadow properties that were created because there was no matching CLR member.

(Inherited from ModelValidator)
LogShadowProperties(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

Throws an InvalidOperationException with a message containing provider-specific information, when available, indicating possible reasons why the property cannot be mapped.

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

Throws an InvalidOperationException with a message containing provider-specific information, when available, indicating possible reasons why the property cannot be mapped.

ThrowPropertyNotMappedException(String, ITypeBase, IProperty)

Throws an InvalidOperationException with a message containing provider-specific information, when available, indicating possible reasons why the property cannot be mapped.

Validate(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a model, throwing an exception if any errors are found.

Validate(IModel)

Validates a model, throwing an exception if any errors are found.

ValidateAmbiguousOneToOneRelationship(IForeignKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a one-to-one relationship has an unambiguous principal end.

(Inherited from ModelValidator)
ValidateAutoLoaded(IProperty, ITypeBase, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a property configured as not auto-loaded is not a key, foreign key, concurrency token, discriminator, or consumed by a constructor binding.

ValidateBoolsWithDefaults(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of Boolean properties in the model.

ValidateBoolsWithDefaults(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateBoolWithDefaults(IProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a Boolean property with defaults.

ValidateChangeTrackingStrategy(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of change tracking in the model.

(Inherited from ModelValidator)
ValidateChangeTrackingStrategy(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateClrInheritance(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of inheritance in the model.

(Inherited from ModelValidator)
ValidateClrInheritance(IModel, IEntityType, HashSet<IEntityType>)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateClrInheritance(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateCompatible(ICheckConstraint, ICheckConstraint, String, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of two check constraints with the same name.

ValidateCompatible(IForeignKey, IForeignKey, String, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of two foreign keys mapped to the same foreign key constraint.

ValidateCompatible(IIndex, IIndex, String, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of two indexes mapped to the same table index.

ValidateCompatible(IKey, IKey, String, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of two keys mapped to the same unique constraint.

ValidateCompatible(IProperty, IProperty, String, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of two properties mapped to the same column.

ValidateCompatible(ITrigger, ITrigger, String, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of two trigger with the same name.

ValidateComplexProperty(IComplexProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single complex property and its nested members.

(Inherited from ModelValidator)
ValidateContainerColumnType(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the container column type configuration for a specific entity type.

ValidateData(IEntityType, Dictionary<IKey,IIdentityMap>, Boolean, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates seed data for an entity type.

ValidateData(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of data (e.g. seed data) in the model.

ValidateData(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of data (e.g. seed data) in the model.

(Inherited from ModelValidator)
ValidateData(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateDataTypes(IModel)
Obsolete.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateDbFunction(IDbFunction, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single database function.

ValidateDbFunctionMapping(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the function mapping for an entity type.

ValidateDbFunctions(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of functions in the model.

ValidateDbFunctions(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateDefaultValuesOnKey(IKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates default values on a key.

ValidateDefaultValuesOnKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of default values in the model.

ValidateDefaultValuesOnKeys(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateDefiningNavigations(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
Obsolete.

Validates the mapping/configuration of defining navigations in the model.

(Inherited from ModelValidator)
ValidateDefiningNavigations(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateDefiningQuery(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of defining queries in the model.

(Inherited from ModelValidator)
ValidateDiscriminatorValues(IComplexType)

Validates the discriminator and values for the given complex type and nested ones.

(Inherited from ModelValidator)
ValidateDiscriminatorValues(IEntityType)

Validates the discriminator and values for all entity types derived from the given one.

(Inherited from ModelValidator)
ValidateDiscriminatorValues(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
Obsolete.

Validates the mapping/configuration of inheritance in the model.

(Inherited from ModelValidator)
ValidateEntityClrType(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that an entity type is not accidentally mapped from common CLR types.

(Inherited from ModelValidator)
ValidateEntityClrTypes(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that common CLR types are not mapped accidentally as entity types.

(Inherited from ModelValidator)
ValidateEntityType(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single entity type.

ValidateFieldMapping(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of properties mapped to fields in the model.

(Inherited from ModelValidator)
ValidateFieldMapping(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateFieldMapping(ITypeBase, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates field mapping configuration for a structural type.

(Inherited from ModelValidator)
ValidateForeignKey(IForeignKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a foreign key.

(Inherited from ModelValidator)
ValidateForeignKeyPropertyInKey(IForeignKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that foreign key properties are not part of an inherited key that would cause issues.

(Inherited from ModelValidator)
ValidateForeignKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of foreign keys in the model.

(Inherited from ModelValidator)
ValidateForeignKeys(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateIgnoredMembers(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that no attempt is made to ignore inherited properties on an entity type.

(Inherited from ModelValidator)
ValidateIgnoredMembers(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that no attempt is made to ignore inherited properties.

(Inherited from ModelValidator)
ValidateIndex(IIndex, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single index.

ValidateIndexOnComplexProperty(IIndex, IReadOnlyList<IComplexProperty>, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates an index that contains a complex property.

ValidateIndexProperties(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that the properties of any one index are all mapped to columns on at least one common table.

ValidateIndexProperty(IIndex, IPropertyBase, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a property contained in an index.

ValidateIndexPropertyMapping(IIndex, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that the properties of the index are all mapped to columns on a given table.

ValidateInheritanceMapping(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates inheritance mapping for an entity type.

ValidateInheritanceMapping(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of inheritance in the model.

ValidateInheritanceMapping(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateJsonEntities(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the JSON entities.

ValidateJsonEntityKey(StoreObjectIdentifier, IEntityType)

Validate the key of entity mapped to a JSON column.

ValidateJsonEntityNavigations(StoreObjectIdentifier, IEntityType)

Validates navigations of the entity mapped to a JSON column.

ValidateJsonEntityOwnerMappedToTableOrView(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that an entity type owning a JSON entity is mapped to a table or view.

ValidateJsonEntityProperties(StoreObjectIdentifier, IEntityType)

Validate the properties of entity mapped to a JSON column.

ValidateJsonEntityRoot(StoreObjectIdentifier, IEntityType)

Validates the root entity mapped to a JSON column.

ValidateJsonEntitySingularMapping(StoreObjectIdentifier, IEntityType)

Validates the singular (non-collection) mapping aspects of an entity mapped to a JSON column.

ValidateJsonTable(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the JSON entities mapped to a table.

ValidateJsonView(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the JSON entities mapped to a view.

ValidateKey(IKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single key.

ValidateKeylessTypes(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of entity types without keys in the model.

(Inherited from ModelValidator)
ValidateMappingFragment(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping fragments for an entity type.

ValidateMappingFragments(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the entity type mapping fragments.

ValidateMappingStrategy(IEntityType, String)

Validates that the given mapping strategy is supported

ValidateMutableKey(IKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a key doesn't have mutable properties.

ValidateNoCycles(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of the model for cycles.

(Inherited from ModelValidator)
ValidateNoCycles(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateNoMutableKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of mutable in the model.

ValidateNoMutableKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of mutable keys in the model.

(Inherited from ModelValidator)
ValidateNoMutableKeys(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateNonNullPrimaryKey(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a trackable entity type has a primary key.

(Inherited from ModelValidator)
ValidateNonNullPrimaryKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that all trackable entity types have a primary key.

(Inherited from ModelValidator)
ValidateNonNullPrimaryKeys(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateNoShadowEntities(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
Obsolete.

Validates that the model does not contain any entity types without a corresponding CLR type.

(Inherited from ModelValidator)
ValidateNoShadowEntities(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateNoShadowKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of shadow keys in the model.

(Inherited from ModelValidator)
ValidateNoShadowKeys(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateOptionalDependents(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that optional dependents have an identifying non-nullable property.

ValidateOwnedEntityMappedToJsonCollection(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

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.

ValidateOwnership(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates ownership configuration for an entity type.

(Inherited from ModelValidator)
ValidateOwnership(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of ownership in the model.

(Inherited from ModelValidator)
ValidateOwnership(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidatePrimitiveCollection(IProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a primitive collection property.

ValidatePrimitiveCollections(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping of primitive collection properties the model.

ValidatePrimitiveCollections(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping of primitive collection properties in the model.

(Inherited from ModelValidator)
ValidateProperty(IProperty, ITypeBase, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single property.

ValidatePropertyMapping(IComplexProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates property mappings for a given complex property.

ValidatePropertyMapping(IConventionComplexProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates property mappings for a given complex property.

ValidatePropertyMapping(IConventionTypeBase, IConventionModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates property mappings for a given type.

(Inherited from ModelValidator)
ValidatePropertyMapping(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates property mappings.

(Inherited from ModelValidator)
ValidatePropertyMapping(ITypeBase, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates property mappings for a given type.

(Inherited from ModelValidator)
ValidatePropertyOverride(IProperty, IReadOnlyRelationalPropertyOverrides, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a table-specific property override for a property.

ValidatePropertyOverrides(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the table-specific property overrides.

ValidateQueryFilters(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates query filter configuration for an entity type.

(Inherited from ModelValidator)
ValidateQueryFilters(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of query filters in the model.

(Inherited from ModelValidator)
ValidateQueryFilters(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateQueryTypes(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ModelValidator)
ValidateRedundantForeignKey(IForeignKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a foreign key is not redundant and logs a warning if it is.

(Inherited from ModelValidator)
ValidateRelationships(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates relationships.

(Inherited from ModelValidator)
ValidateSequence(ISequence, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single sequence.

ValidateShadowKey(IKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a key doesn't have shadow properties inappropriately.

(Inherited from ModelValidator)
ValidateSharedCheckConstraintCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of check constraints in a given shared table.

ValidateSharedColumnsCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of properties sharing columns in a given table-like object.

ValidateSharedColumnsCompatibility(IReadOnlyList<IEntityType>, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of properties sharing columns in a given table.

ValidateSharedColumnsCompatibility(IReadOnlyList<IEntityType>, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of foreign keys in a given shared table.

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of foreign keys in a given shared table.

ValidateSharedForeignKeysCompatibility(IReadOnlyList<IEntityType>, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateSharedIndexesCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of indexes in a given shared table.

ValidateSharedIndexesCompatibility(IReadOnlyList<IEntityType>, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of indexes in a given shared table.

ValidateSharedIndexesCompatibility(IReadOnlyList<IEntityType>, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateSharedKeysCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of primary and alternate keys in a given shared table.

ValidateSharedKeysCompatibility(IReadOnlyList<IEntityType>, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of primary and alternate keys in a given shared table.

ValidateSharedKeysCompatibility(IReadOnlyList<IEntityType>, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateSharedTableCompatibility(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of shared tables in the model.

ValidateSharedTableCompatibility(IModel)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateSharedTableCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of entity types sharing a given table.

ValidateSharedTableCompatibility(IReadOnlyList<IEntityType>, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of entity types sharing a given table.

ValidateSharedTableCompatibility(IReadOnlyList<IEntityType>, String, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of entity types sharing a given table.

ValidateSharedTableCompatibility(IReadOnlyList<IEntityType>, String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

ValidateSharedTriggerCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of triggers in a given shared table.

ValidateSharedViewCompatibility(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of shared views in the model.

ValidateSharedViewCompatibility(IReadOnlyList<IEntityType>, String, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the compatibility of entity types sharing a given view.

ValidateSkipNavigation(ISkipNavigation, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a skip navigation.

(Inherited from ModelValidator)
ValidateSkipNavigationForeignKey(ISkipNavigation, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a skip navigation has a foreign key configured.

(Inherited from ModelValidator)
ValidateSkipNavigationInverse(ISkipNavigation, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a skip navigation has an inverse navigation configured.

(Inherited from ModelValidator)
ValidateSkipNavigationIsCollection(ISkipNavigation, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a skip navigation is a collection navigation.

(Inherited from ModelValidator)
ValidateSqlQueries(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of SQL queries in the model.

ValidateSqlQuery(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the SQL query mapping for an entity type.

ValidateStoredProcedure(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single stored procedure and all entity types mapped to it.

ValidateStoredProcedureCompatibility(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a stored procedure is not shared across unrelated entity types.

ValidateStoredProcedures(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the stored procedures for an entity type.

ValidateStoredProcedures(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the mapping/configuration of stored procedures in the model.

ValidateTable(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single table and all entity types mapped to it.

ValidateTphTriggers(IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Logs a warning if triggers are defined on a non-root entity type using TPH mapping strategy.

ValidateTrigger(ITrigger, IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single trigger.

ValidateTriggers(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that the triggers are unambiguously mapped to exactly one table.

ValidateTriggerTableMapping(ITrigger, IEntityType, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates that a trigger is mapped to the same table as its entity type.

ValidateTypeMapping(IProperty, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates type mapping for a property.

(Inherited from ModelValidator)
ValidateTypeMappings(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the type mapping of properties in the model.

(Inherited from ModelValidator)
ValidateValueGeneration(IEntityType, IKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the key value generation is valid.

ValidateValueGeneration(IKey, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates the key value generation is valid.

ValidateView(IReadOnlyList<IEntityType>, StoreObjectIdentifier, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

Validates a single view and all entity types mapped to it.

Applies to