Language

IMigrationCommandExecutor インターフェイス

定義

データベースに対して移行コマンドを実行するためのサービス。

public interface IMigrationCommandExecutor
type IMigrationCommandExecutor = interface
Public Interface IMigrationCommandExecutor

注釈

サービスの有効期間は Scoped。 これは、各 DbContext インスタンスがこのサービスの独自のインスタンスを使用することを意味します。 実装は、任意の有効期間で登録されている他のサービスに依存する場合があります。 実装はスレッド セーフである必要はありません。

詳細と例については、「 データベースの移行 」を参照してください。

メソッド

Name 説明
ExecuteNonQuery(IEnumerable<MigrationCommand>, IRelationalConnection)

指定されたデータベース接続を使用して、指定されたコマンドを実行します。

ExecuteNonQuery(IReadOnlyList<MigrationCommand>, IRelationalConnection, MigrationExecutionState, Boolean, Nullable<IsolationLevel>)

指定されたデータベース接続を使用して、指定されたコマンドを実行します。

ExecuteNonQueryAsync(IEnumerable<MigrationCommand>, IRelationalConnection, CancellationToken)

指定されたデータベース接続を使用して、指定されたコマンドを実行します。

ExecuteNonQueryAsync(IReadOnlyList<MigrationCommand>, IRelationalConnection, MigrationExecutionState, Boolean, Nullable<IsolationLevel>, CancellationToken)

指定されたデータベース接続を使用して、指定されたコマンドを実行します。

適用対象