ModelRuntimeInitializer Class
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.
Initializes a IModel with the runtime dependencies.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class ModelRuntimeInitializer : Microsoft.EntityFrameworkCore.Infrastructure.IModelRuntimeInitializer
type ModelRuntimeInitializer = class
interface IModelRuntimeInitializer
Public Class ModelRuntimeInitializer
Implements IModelRuntimeInitializer
- Inheritance
-
ModelRuntimeInitializer
- Derived
- Implements
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
ModelRuntimeInitializer(ModelRuntimeInitializerDependencies) |
Creates a new ModelRuntimeInitializer instance. |
Properties
Dependencies |
Dependencies for this service. |
Methods
Initialize(IModel, Boolean, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates and initializes the given model with runtime dependencies. |
InitializeModel(IModel, Boolean, Boolean) |
Initializes the given model with runtime dependencies. |
Applies to
Entity Framework