SnapshotModelProcessor.Process(IReadOnlyModel, 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.
Processes the model, applying any fix-ups needed for the version of EF Core that created the snapshot.
public virtual Microsoft.EntityFrameworkCore.Metadata.IModel? Process(Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel? model, bool resetVersion = false);
abstract member Process : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel * bool -> Microsoft.EntityFrameworkCore.Metadata.IModel
override this.Process : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel * bool -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable Function Process (model As IReadOnlyModel, Optional resetVersion As Boolean = false) As IModel
Parameters
- model
- IReadOnlyModel
The model read from the snapshot.
- resetVersion
- Boolean
If true, the product version annotation on the returned model is reset to the current
EF Core version. Use this when the processed model will be persisted back to a snapshot.
Returns
The processed model, or null if model is null.