ModelRuntimeInitializer.Initialize 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.
Validates and initializes the given model with runtime dependencies.
public virtual Microsoft.EntityFrameworkCore.Metadata.IModel Initialize (Microsoft.EntityFrameworkCore.Metadata.IModel model, bool designTime = true, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation>? validationLogger = default);
abstract member Initialize : Microsoft.EntityFrameworkCore.Metadata.IModel * bool * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.Metadata.IModel
override this.Initialize : Microsoft.EntityFrameworkCore.Metadata.IModel * bool * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable Function Initialize (model As IModel, Optional designTime As Boolean = true, Optional validationLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation) = Nothing) As IModel
Parameters
- model
- IModel
The model to initialize.
- designTime
- Boolean
Whether the model should contain design-time configuration.
- validationLogger
- IDiagnosticsLogger<DbLoggerCategory.Model.Validation>
The validation logger.
Returns
The initialized model.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework