Table of Contents

Class MongoModelValidator

Namespace
MongoDB.EntityFrameworkCore.Infrastructure
Assembly
MongoDB.EntityFrameworkCore.dll

Ensures rules required by the MongoDB provider are checked and enforced for a given IModel.

public class MongoModelValidator : ModelValidator, IModelValidator
Inheritance
MongoModelValidator
Implements
Inherited Members

Constructors

MongoModelValidator(ModelValidatorDependencies)

Create a MongoModelValidator.

Methods

Validate(IModel, IDiagnosticsLogger<Validation>)

Validate that the model is correct and can be used by the MongoDB provider.

ValidateNoMutableKeys(IModel, IDiagnosticsLogger<Validation>)

Validates that the only keys that can actually be changed are shadow keys used by owned entities.