Share via


ModelRuntimeInitializer.InitializeModel(IModel, Boolean, Boolean) Method

Definition

Initializes the given model with runtime dependencies.

protected virtual void InitializeModel (Microsoft.EntityFrameworkCore.Metadata.IModel model, bool designTime, bool prevalidation);
abstract member InitializeModel : Microsoft.EntityFrameworkCore.Metadata.IModel * bool * bool -> unit
override this.InitializeModel : Microsoft.EntityFrameworkCore.Metadata.IModel * bool * bool -> unit
Protected Overridable Sub InitializeModel (model As IModel, designTime As Boolean, prevalidation As Boolean)

Parameters

model
IModel

The model to initialize.

designTime
Boolean

Whether the model should contain design-time configuration.

prevalidation
Boolean

true indicates that only pre-validation initialization should be performed; false indicates that only post-validation initialization should be performed.

Applies to