IMigrationsCodeGenerator.GenerateSnapshot メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| GenerateSnapshot(String, Type, String, IModel) |
モデル スナップショット コードを生成します。 |
| GenerateSnapshot(String, Type, String, IModel, String) |
モデル スナップショット コードを生成します。 |
GenerateSnapshot(String, Type, String, IModel)
モデル スナップショット コードを生成します。
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
モデル スナップショットの名前空間。
- modelSnapshotName
- String
モデル スナップショットの名前。
- model
- IModel
モデル。
戻り値
モデル スナップショット コード。
適用対象
GenerateSnapshot(String, Type, String, IModel, String)
モデル スナップショット コードを生成します。
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
モデル スナップショットの名前空間。
- modelSnapshotName
- String
モデル スナップショットの名前。
- model
- IModel
モデル。
- latestMigrationId
- String
モデルに適用された最新の移行の ID。
戻り値
モデル スナップショット コード。