ModelRuntimeInitializer.InitializeModel(IModel, Boolean, Boolean) 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.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework