Udostępnij za pośrednictwem


CSharpMigrationsGenerator.GenerateSnapshot Metoda

Definicja

Generuje kod migawki modelu.

public override string GenerateSnapshot (string modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
public override string GenerateSnapshot (string? modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
override this.GenerateSnapshot : string * Type * string * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Public Overrides 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.

Dotyczy