Compartir a través de


IMigrationCommandExecutor.ExecuteNonQueryAsync Método

Definición

Ejecuta los comandos especificados mediante la conexión de base de datos especificada.

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

Parámetros

migrationCommands
IEnumerable<MigrationCommand>

Comandos que se van a ejecutar.

connection
IRelationalConnection

Conexión que se va a usar.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Tarea que representa la operación asincrónica.

Excepciones

Se aplica a