DbDataAdapter.AddToBatch(IDbCommand) Método

Definición

Agrega un IDbCommand objeto al lote actual.

protected:
 virtual int AddToBatch(System::Data::IDbCommand ^ command);
protected virtual int AddToBatch(System.Data.IDbCommand command);
abstract member AddToBatch : System.Data.IDbCommand -> int
override this.AddToBatch : System.Data.IDbCommand -> int
Protected Overridable Function AddToBatch (command As IDbCommand) As Integer

Parámetros

command
IDbCommand

que IDbCommand se va a agregar al lote.

Devoluciones

Número de comandos del lote antes de agregar .IDbCommand

Excepciones

El adaptador no admite lotes.

Comentarios

En DbDataAdapter, este método produce NotSupportedException. Las clases que heredan de DbDataAdapter invalidar este método para proporcionar compatibilidad con lotes.

Notas a los desarrolladores de herederos

Este método está protegido y está diseñado para que lo use un proveedor de datos de .NET Framework.

Si una clase que hereda de DbDataAdapter admite lotes, esa clase invalida este método para permitir que los usuarios agreguen un comando a un lote.

Se aplica a

Consulte también