Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IModelRuntimeInitializer Interface
Definition
- Namespace:
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly:
- Microsoft.EntityFrameworkCore.dll
- Package:
- Microsoft.EntityFrameworkCore v10.0.0
- Package:
- Microsoft.EntityFrameworkCore v6.0.0
- Package:
- Microsoft.EntityFrameworkCore v7.0.0
- Package:
- Microsoft.EntityFrameworkCore v8.0.0
- Package:
- Microsoft.EntityFrameworkCore v9.0.0
- Source:
- IModelRuntimeInitializer.cs
- Source:
- IModelRuntimeInitializer.cs
- Source:
- IModelRuntimeInitializer.cs
- Source:
- IModelRuntimeInitializer.cs
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 is typically implemented by database providers to ensure that any runtime dependencies specific to their database are used.
This interface is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IModelRuntimeInitializer
type IModelRuntimeInitializer = interface
Public Interface IModelRuntimeInitializer
- Derived
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.
Methods
| Name | Description |
|---|---|
| Initialize(IModel, Boolean, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
Validates and initializes the given model with runtime dependencies. |
Applies to
Entity Framework
Feedback
Was this page helpful?
