IMigrationCommandExecutor.ExecuteNonQueryAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| ExecuteNonQueryAsync(IEnumerable<MigrationCommand>, IRelationalConnection, CancellationToken) |
指定されたデータベース接続を使用して、指定されたコマンドを実行します。 |
| ExecuteNonQueryAsync(IReadOnlyList<MigrationCommand>, IRelationalConnection, MigrationExecutionState, Boolean, Nullable<IsolationLevel>, CancellationToken) |
指定されたデータベース接続を使用して、指定されたコマンドを実行します。 |
ExecuteNonQueryAsync(IEnumerable<MigrationCommand>, IRelationalConnection, CancellationToken)
指定されたデータベース接続を使用して、指定されたコマンドを実行します。
public System.Threading.Tasks.Task ExecuteNonQueryAsync(System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> migrationCommands, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteNonQueryAsync : seq<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExecuteNonQueryAsync (migrationCommands As IEnumerable(Of MigrationCommand), connection As IRelationalConnection, Optional cancellationToken As CancellationToken = Nothing) As Task
パラメーター
- migrationCommands
- IEnumerable<MigrationCommand>
実行するコマンド。
- connection
- IRelationalConnection
使用する接続。
- cancellationToken
- CancellationToken
タスクの完了を待機している間に観察する CancellationToken 。
戻り値
非同期操作を表すタスク。
例外
CancellationTokenが取り消された場合。
適用対象
ExecuteNonQueryAsync(IReadOnlyList<MigrationCommand>, IRelationalConnection, MigrationExecutionState, Boolean, Nullable<IsolationLevel>, CancellationToken)
指定されたデータベース接続を使用して、指定されたコマンドを実行します。
public System.Threading.Tasks.Task<int> ExecuteNonQueryAsync(System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> migrationCommands, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.MigrationExecutionState executionState, bool commitTransaction, System.Data.IsolationLevel? isolationLevel = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteNonQueryAsync : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Migrations.MigrationCommand> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.MigrationExecutionState * bool * Nullable<System.Data.IsolationLevel> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function ExecuteNonQueryAsync (migrationCommands As IReadOnlyList(Of MigrationCommand), connection As IRelationalConnection, executionState As MigrationExecutionState, commitTransaction As Boolean, Optional isolationLevel As Nullable(Of IsolationLevel) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)
パラメーター
- migrationCommands
- IReadOnlyList<MigrationCommand>
実行するコマンド。
- connection
- IRelationalConnection
使用する接続。
- executionState
- MigrationExecutionState
現在の移行実行の状態。
- commitTransaction
- Boolean
この呼び出しによって開始されたトランザクションをコミットする必要があるかどうかを示します。
false場合、トランザクションはexecutionStateで使用できるようになります。
- isolationLevel
- Nullable<IsolationLevel>
トランザクションの分離レベル。
- cancellationToken
- CancellationToken
タスクの完了を待機している間に観察する CancellationToken 。
戻り値
非同期操作を表すタスク。
例外
CancellationTokenが取り消された場合。