RelationalModelRuntimeInitializer Class

Definition

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.

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.

public class RelationalModelRuntimeInitializer : Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer
type RelationalModelRuntimeInitializer = class
    inherit ModelRuntimeInitializer
Public Class RelationalModelRuntimeInitializer
Inherits ModelRuntimeInitializer
Inheritance
RelationalModelRuntimeInitializer

Remarks

See Implementation of database providers and extensions for more information.

Constructors

RelationalModelRuntimeInitializer(ModelRuntimeInitializerDependencies, RelationalModelRuntimeInitializerDependencies)

Creates a new ModelRuntimeInitializer instance.

Properties

Dependencies

Dependencies for this service.

(Inherited from ModelRuntimeInitializer)
RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

Initialize(IModel, Boolean, IDiagnosticsLogger<DbLoggerCategory.Model>)

Validates and initializes the given model with runtime dependencies.

(Inherited from ModelRuntimeInitializer)
InitializeModel(IModel, Boolean, Boolean)

Initializes the given model with runtime dependencies.

Applies to