Udostępnij za pośrednictwem


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

Definicja

Generuje kod migawki modelu.

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

Parametry

modelSnapshotNamespace
String

Przestrzeń nazw migawki modelu.

contextType
Type

Typ migawki DbContext modelu.

modelSnapshotName
String

Nazwa migawki modelu.

model
IModel

Model.

Zwraca

Kod migawki modelu.

Implementuje

Dotyczy