Compartilhar via


IBatchExecutor.Execute Método

Definição

Executa os comandos nos lotes em relação à conexão de banco de dados fornecida.

public int Execute (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch> commandBatches, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
abstract member Execute : seq<Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> int
Public Function Execute (commandBatches As IEnumerable(Of ModificationCommandBatch), connection As IRelationalConnection) As Integer

Parâmetros

commandBatches
IEnumerable<ModificationCommandBatch>

Os lotes a serem executados.

connection
IRelationalConnection

A conexão de banco de dados a ser usada.

Retornos

O número total de linhas afetadas.

Aplica-se a