Compartilhar via


IMigrationCommandExecutor.ExecuteNonQueryAsync Método

Definição

Executa os comandos determinados usando a conexão de banco de dados fornecida.

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>

Os comandos a serem executados.

connection
IRelationalConnection

A conexão a ser usada.

cancellationToken
CancellationToken

Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.

Retornos

Uma tarefa que representa a operação assíncrona.

Exceções

Se o padrão CancellationToken for cancelado.

Aplica-se a