Method Initialize
- Namespace
- MongoDB.EntityFrameworkCore.Infrastructure
- Assembly
- MongoDB.EntityFrameworkCore.dll
Initialize(IModel, bool, IDiagnosticsLogger<Validation>?)
Validates and initializes the given model with runtime dependencies.
public override IModel Initialize(IModel model, bool designTime = true, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>? validationLogger = null)
Parameters
model
IModelThe model to initialize.
designTime
boolWhether the model should contain design-time configuration.
validationLogger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>The validation logger.
Returns
- IModel
The initialized model.
Remarks
Specifically, this method initializes the MongoDB C# Driver with the necessary configuration to support the model and MongoDB EF Core provider.