Table of Contents

Class ModelSnapshot

Namespace
Microsoft.EntityFrameworkCore.Infrastructure
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Base class for the snapshot of the Microsoft.EntityFrameworkCore.Metadata.IModel state generated by Migrations.

public abstract class ModelSnapshot
Inheritance
ModelSnapshot
Inherited Members

Constructors

ModelSnapshot()

protected ModelSnapshot()

Properties

Model

The snapshot model.

public virtual IModel Model { get; }

Property Value

IModel

Methods

BuildModel(ModelBuilder)

Called lazily by Model to build the model snapshot the first time it is requested.

protected abstract void BuildModel(ModelBuilder modelBuilder)

Parameters

modelBuilder ModelBuilder

The Microsoft.EntityFrameworkCore.ModelBuilder to use to build the model.