Class NpgsqlModelValidator
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Inheritance
object
NpgsqlModelValidator
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class NpgsqlModelValidator : RelationalModelValidator
Constructors
|
Improve this Doc
View Source
NpgsqlModelValidator(ModelValidatorDependencies, RelationalModelValidatorDependencies, INpgsqlSingletonOptions)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
public NpgsqlModelValidator(ModelValidatorDependencies dependencies, RelationalModelValidatorDependencies relationalDependencies, INpgsqlSingletonOptions npgsqlSingletonOptions)
Parameters
Type |
Name |
Description |
ModelValidatorDependencies |
dependencies |
|
RelationalModelValidatorDependencies |
relationalDependencies |
|
INpgsqlSingletonOptions |
npgsqlSingletonOptions |
|
Methods
|
Improve this Doc
View Source
Validate(IModel, IDiagnosticsLogger<Validation>)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
public override void Validate(IModel model, IDiagnosticsLogger<DbLoggerCategory.Model.Validation> logger)
Parameters
Type |
Name |
Description |
IModel |
model |
|
IDiagnosticsLogger<><Validation> |
logger |
|
|
Improve this Doc
View Source
ValidateCompatible(IProperty, IProperty, string, in StoreObjectIdentifier, IDiagnosticsLogger<Validation>)
Declaration
protected override void ValidateCompatible(IProperty property, IProperty duplicateProperty, string columnName, in StoreObjectIdentifier storeObject, IDiagnosticsLogger<DbLoggerCategory.Model.Validation> logger)
Parameters
Type |
Name |
Description |
IProperty |
property |
|
IProperty |
duplicateProperty |
|
string |
columnName |
|
StoreObjectIdentifier |
storeObject |
|
IDiagnosticsLogger<><Validation> |
logger |
|
|
Improve this Doc
View Source
ValidateIdentityVersionCompatibility(IModel)
Validates that identity columns are used only with PostgreSQL 10.0 or later.
Declaration
protected virtual void ValidateIdentityVersionCompatibility(IModel model)
Parameters
Type |
Name |
Description |
IModel |
model |
The model to validate.
|
|
Improve this Doc
View Source
ValidateIndexIncludeProperties(IModel)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
protected virtual void ValidateIndexIncludeProperties(IModel model)
Parameters
Type |
Name |
Description |
IModel |
model |
|
|
Improve this Doc
View Source
ValidateJsonEntities(IModel, IDiagnosticsLogger<Validation>)
Declaration
protected override void ValidateJsonEntities(IModel model, IDiagnosticsLogger<DbLoggerCategory.Model.Validation> logger)
Parameters
Type |
Name |
Description |
IModel |
model |
|
IDiagnosticsLogger<><Validation> |
logger |
|
|
Improve this Doc
View Source
ValidateStoredProcedures(IModel, IDiagnosticsLogger<Validation>)
Declaration
protected override void ValidateStoredProcedures(IModel model, IDiagnosticsLogger<DbLoggerCategory.Model.Validation> logger)
Parameters
Type |
Name |
Description |
IModel |
model |
|
IDiagnosticsLogger<><Validation> |
logger |
|
|
Improve this Doc
View Source
ValidateValueGeneration(IEntityType, IKey, IDiagnosticsLogger<Validation>)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to
the same compatibility standards as public APIs. It may be changed or removed without notice in
any release. You should only use it directly in your code with extreme caution and knowing that
doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
protected override void ValidateValueGeneration(IEntityType entityType, IKey key, IDiagnosticsLogger<DbLoggerCategory.Model.Validation> logger)
Parameters
Type |
Name |
Description |
IEntityType |
entityType |
|
IKey |
key |
|
IDiagnosticsLogger<><Validation> |
logger |
|