Language

IMigrationsCodeGenerator.GenerateSnapshot メソッド

定義

オーバーロード

Name 説明
GenerateSnapshot(String, Type, String, IModel)

モデル スナップショット コードを生成します。

GenerateSnapshot(String, Type, String, IModel, String)

モデル スナップショット コードを生成します。

GenerateSnapshot(String, Type, String, IModel)

ソース:
IMigrationsCodeGenerator.cs
ソース:
IMigrationsCodeGenerator.cs
ソース:
IMigrationsCodeGenerator.cs
ソース:
IMigrationsCodeGenerator.cs

モデル スナップショット コードを生成します。

public string GenerateSnapshot(string? modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
public 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 Function GenerateSnapshot (modelSnapshotNamespace As String, contextType As Type, modelSnapshotName As String, model As IModel) As String

パラメーター

modelSnapshotNamespace
String

モデル スナップショットの名前空間。

contextType
Type

モデル スナップショットの DbContext の種類。

modelSnapshotName
String

モデル スナップショットの名前。

model
IModel

モデル。

戻り値

モデル スナップショット コード。

適用対象

GenerateSnapshot(String, Type, String, IModel, String)

ソース:
IMigrationsCodeGenerator.cs

モデル スナップショット コードを生成します。

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

パラメーター

modelSnapshotNamespace
String

モデル スナップショットの名前空間。

contextType
Type

モデル スナップショットの DbContext の種類。

modelSnapshotName
String

モデル スナップショットの名前。

model
IModel

モデル。

latestMigrationId
String

モデルに適用された最新の移行の ID。

戻り値

モデル スナップショット コード。

適用対象