Condividi tramite


IMigrationCommandExecutor.ExecuteNonQueryAsync Metodo

Definizione

Esegue i comandi specificati usando la connessione al database specificata.

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

Parametri

migrationCommands
IEnumerable<MigrationCommand>

Comandi da eseguire.

connection
IRelationalConnection

Connessione da utilizzare.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'attesa del completamento dell'attività.

Restituisce

Attività che rappresenta l'operazione asincrona.

Eccezioni

Si applica a