Share via


MigrationsCodeGenerator.GenerateSnapshot(String, Type, String, IModel) Method

Definition

Generates the model snapshot code.

public abstract string GenerateSnapshot (string modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
public abstract string GenerateSnapshot (string? modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member GenerateSnapshot : string * Type * string * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Public MustOverride Function GenerateSnapshot (modelSnapshotNamespace As String, contextType As Type, modelSnapshotName As String, model As IModel) As String

Parameters

modelSnapshotNamespace
String

The model snapshot's namespace.

contextType
Type

The model snapshot's DbContext type.

modelSnapshotName
String

The model snapshot's name.

model
IModel

The model.

Returns

The model snapshot code.

Implements

Applies to