CSharpMigrationsGenerator.GenerateSnapshot Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| GenerateSnapshot(String, Type, String, IModel) |
Generiert den Modellmomentaufnahmecode. |
| GenerateSnapshot(String, Type, String, IModel, String) |
Generiert den Modellmomentaufnahmecode. |
GenerateSnapshot(String, Type, String, IModel)
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
- Quelle:
- CSharpMigrationsGenerator.cs
Generiert den Modellmomentaufnahmecode.
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
Parameter
- modelSnapshotNamespace
- String
Der Namespace der Modellmomentaufnahme.
- modelSnapshotName
- String
Der Name der Modellmomentaufnahme.
- model
- IModel
Das Modell.
Gibt zurück
Der Modellmomentaufnahmecode.
Gilt für:
GenerateSnapshot(String, Type, String, IModel, String)
- Quelle:
- CSharpMigrationsGenerator.cs
Generiert den Modellmomentaufnahmecode.
public override string GenerateSnapshot(string? modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model, string? latestMigrationId = default);
override this.GenerateSnapshot : string * Type * string * Microsoft.EntityFrameworkCore.Metadata.IModel * string -> string
Public Overrides Function GenerateSnapshot (modelSnapshotNamespace As String, contextType As Type, modelSnapshotName As String, model As IModel, Optional latestMigrationId As String = Nothing) As String
Parameter
- modelSnapshotNamespace
- String
Der Namespace der Modellmomentaufnahme.
- modelSnapshotName
- String
Der Name der Modellmomentaufnahme.
- model
- IModel
Das Modell.
- latestMigrationId
- String
Die ID der neuesten Migration, die auf das Modell angewendet wurde.
Gibt zurück
Der Modellmomentaufnahmecode.