Delen via


ModelSnapshot Class

Definition

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

public abstract class ModelSnapshot
type ModelSnapshot = class
Public MustInherit Class ModelSnapshot
Inheritance
ModelSnapshot

Remarks

See Database migrations for more information and examples.

Constructors

ModelSnapshot()

Constructs a new snapshot instance.

Properties

Model

The snapshot model.

Methods

BuildModel(ModelBuilder)

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

Applies to