OleDbDataAdapter OleDbDataAdapter OleDbDataAdapter OleDbDataAdapter Class

Definición

Representa un conjunto de comandos de datos y una conexión de base de datos que se utilizan para rellenar DataSet y actualizar el origen de datos.Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.

public ref class OleDbDataAdapter sealed : System::Data::Common::DbDataAdapter, ICloneable
public sealed class OleDbDataAdapter : System.Data.Common.DbDataAdapter, ICloneable
type OleDbDataAdapter = class
    inherit DbDataAdapter
    interface IDbDataAdapter
    interface ICloneable
    interface IDataAdapter
Public NotInheritable Class OleDbDataAdapter
Inherits DbDataAdapter
Implements ICloneable
Herencia
Implementaciones

Ejemplos

En el ejemplo siguiente se usa el OleDbCommand, OleDbDataAdapter y OleDbConnectionpara seleccionar registros de un origen de datos de Access y rellenar un DataSet con las filas seleccionadas.The following example uses the OleDbCommand, OleDbDataAdapter and OleDbConnection, to select records from an Access data source, and populate a DataSet with the selected rows. El relleno DataSet , a continuación, se devuelve.The filled DataSet is then returned. Para lograr esto, se pasa al método inicializada DataSet, una cadena de conexión y una cadena de consulta que es una instrucción SELECT de SQL.To accomplish this, the method is passed an initialized DataSet, a connection string, and a query string that is an SQL SELECT statement.

public static OleDbDataAdapter CreateDataAdapter(string selectCommand,
    OleDbConnection connection)
{
    OleDbDataAdapter adapter = new OleDbDataAdapter(selectCommand, connection);

    adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;

    // Create the Insert, Update and Delete commands.
    adapter.InsertCommand = new OleDbCommand(
        "INSERT INTO Customers (CustomerID, CompanyName) " +
        "VALUES (?, ?)");

    adapter.UpdateCommand = new OleDbCommand(
        "UPDATE Customers SET CustomerID = ?, CompanyName = ? " +
        "WHERE CustomerID = ?");

    adapter.DeleteCommand = new OleDbCommand(
        "DELETE FROM Customers WHERE CustomerID = ?");

    // Create the parameters.
    adapter.InsertCommand.Parameters.Add("@CustomerID", 
        OleDbType.Char, 5, "CustomerID");
    adapter.InsertCommand.Parameters.Add("@CompanyName", 
        OleDbType.VarChar, 40, "CompanyName");

    adapter.UpdateCommand.Parameters.Add("@CustomerID", 
        OleDbType.Char, 5, "CustomerID");
    adapter.UpdateCommand.Parameters.Add("@CompanyName", 
        OleDbType.VarChar, 40, "CompanyName");
    adapter.UpdateCommand.Parameters.Add("@oldCustomerID", 
        OleDbType.Char, 5, "CustomerID").SourceVersion = 
        DataRowVersion.Original;

    adapter.DeleteCommand.Parameters.Add("@CustomerID", 
        OleDbType.Char, 5, "CustomerID").SourceVersion = 
        DataRowVersion.Original;

    return adapter;
}
Public Function CreateDataAdapter(ByVal selectCommand As String, _
    ByVal connection As OleDbConnection) As OleDbDataAdapter

    Dim adapter As OleDbDataAdapter = _
        New OleDbDataAdapter(selectCommand, connection)

    adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey

    ' Create the commands.
    adapter.InsertCommand = New OleDbCommand( _
        "INSERT INTO Customers (CustomerID, CompanyName) " & _
         "VALUES (?, ?)")

    adapter.UpdateCommand = New OleDbCommand( _
        "UPDATE Customers SET CustomerID = ?, CompanyName = ? " & _
        "WHERE CustomerID = ?")

    adapter.DeleteCommand = New OleDbCommand( _
        "DELETE FROM Customers WHERE CustomerID = ?")

    ' Create the parameters.
    adapter.InsertCommand.Parameters.Add( _
        "@CustomerID", OleDbType.Char, 5, "CustomerID")
    adapter.InsertCommand.Parameters.Add( _
        "@CompanyName", OleDbType.VarChar, 40, "CompanyName")

    adapter.UpdateCommand.Parameters.Add( _
        "@CustomerID", OleDbType.Char, 5, "CustomerID")
    adapter.UpdateCommand.Parameters.Add( _
        "@CompanyName", OleDbType.VarChar, 40, "CompanyName")
    adapter.UpdateCommand.Parameters.Add( _
        "@oldCustomerID", OleDbType.Char, 5, "CustomerID").SourceVersion = _
        DataRowVersion.Original

    adapter.DeleteCommand.Parameters.Add( _
        "@CustomerID", OleDbType.Char, 5, "CustomerID").SourceVersion = _
        DataRowVersion.Original

    Return adapter
End Function

Comentarios

El OleDbDataAdapter actúa como puente entre un DataSet y origen de datos para recuperar y guardar datos.The OleDbDataAdapter serves as a bridge between a DataSet and data source for retrieving and saving data. El OleDbDataAdapter proporciona este puente mediante Fill para cargar datos desde el origen de datos en el DataSety el uso de Update para enviar los cambios realizados en el DataSet en el origen de datos.The OleDbDataAdapter provides this bridge by using Fill to load data from the data source into the DataSet, and using Update to send changes made in the DataSet back to the data source.

Cuando el OleDbDataAdapter rellena un DataSet, crea las tablas y columnas adecuadas para los datos devueltos si aún no existen.When the OleDbDataAdapter fills a DataSet, it will create the appropriate tables and columns for the returned data if they do not already exist. Sin embargo, la información de clave principal no está incluida en el esquema creado implícitamente a menos que el MissingSchemaAction propiedad está establecida en AddWithKey.However, primary key information is not included in the implicitly created schema unless the MissingSchemaAction property is set to AddWithKey. También puede tener la OleDbDataAdapter cree el esquema de la DataSet, incluida la información de clave principal, antes de llenarlo con datos mediante FillSchema.You may also have the OleDbDataAdapter create the schema of the DataSet, including primary key information, before filling it with data using FillSchema. Para obtener más información, consulte agregar restricciones existentes a un conjunto de datos.For more information, see Adding Existing Constraints to a DataSet.

Tenga en cuenta que algunos proveedores OLE DB, incluido el proveedor MSDataShape, no devuelven información de clave principal o la tabla base.Note that some OLE DB providers, including the MSDataShape provider, do not return base table or primary key information. Por lo tanto, el OleDbDataAdapter no se puede establecer correctamente la PrimaryKey propiedad en cualquier creado DataTable.Therefore, the OleDbDataAdapter cannot correctly set the PrimaryKey property on any created DataTable. En estos casos debe especificar explícitamente las claves principales para las tablas en el DataSet.In these cases you should explicitly specify primary keys for tables in the DataSet.

El OleDbDataAdapter también incluye el SelectCommand, InsertCommand, DeleteCommand, UpdateCommand, y TableMappings propiedades para facilitar la carga y actualización de datos.The OleDbDataAdapter also includes the SelectCommand, InsertCommand, DeleteCommand, UpdateCommand, and TableMappings properties to facilitate the loading and updating of data.

Cuando se crea una instancia de OleDbDataAdapter, las propiedades se establecen en sus valores iniciales.When you create an instance of OleDbDataAdapter, properties are set to their initial values. Para obtener una lista de estos valores, vea el OleDbDataAdapter constructor.For a list of these values, see the OleDbDataAdapter constructor.

Constructores

OleDbDataAdapter() OleDbDataAdapter() OleDbDataAdapter() OleDbDataAdapter()

Inicializa una nueva instancia de la clase OleDbDataAdapter.Initializes a new instance of the OleDbDataAdapter class.

OleDbDataAdapter(OleDbCommand) OleDbDataAdapter(OleDbCommand) OleDbDataAdapter(OleDbCommand) OleDbDataAdapter(OleDbCommand)

Inicializa una nueva instancia de la clase OleDbDataAdapter con el objeto OleDbCommand especificado como propiedad SelectCommand.Initializes a new instance of the OleDbDataAdapter class with the specified OleDbCommand as the SelectCommand property.

OleDbDataAdapter(String, OleDbConnection) OleDbDataAdapter(String, OleDbConnection) OleDbDataAdapter(String, OleDbConnection) OleDbDataAdapter(String, OleDbConnection)

Inicializa una nueva instancia de la clase OleDbDataAdapter con la propiedad SelectCommand.Initializes a new instance of the OleDbDataAdapter class with a SelectCommand.

OleDbDataAdapter(String, String) OleDbDataAdapter(String, String) OleDbDataAdapter(String, String) OleDbDataAdapter(String, String)

Inicializa una nueva instancia de la clase OleDbDataAdapter con la propiedad SelectCommand.Initializes a new instance of the OleDbDataAdapter class with a SelectCommand.

Propiedades

AcceptChangesDuringFill AcceptChangesDuringFill AcceptChangesDuringFill AcceptChangesDuringFill

Obtiene o establece un valor que indica si se llama a AcceptChanges() en un elemento DataRow después de agregarlo a DataTable durante cualquiera de las operaciones Fill.Gets or sets a value indicating whether AcceptChanges() is called on a DataRow after it is added to the DataTable during any of the Fill operations.

(Inherited from DataAdapter)
AcceptChangesDuringUpdate AcceptChangesDuringUpdate AcceptChangesDuringUpdate AcceptChangesDuringUpdate

Obtiene o establece si AcceptChanges() se llama durante una Update(DataSet).Gets or sets whether AcceptChanges() is called during a Update(DataSet).

(Inherited from DataAdapter)
CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

Obtiene un valor que indica si el componente puede generar un evento.Gets a value indicating whether the component can raise an event.

(Inherited from Component)
Container Container Container Container

Obtiene IContainer que contiene Component.Gets the IContainer that contains the Component.

(Inherited from Component)
ContinueUpdateOnError ContinueUpdateOnError ContinueUpdateOnError ContinueUpdateOnError

Obtiene o establece un valor que especifica si generar una excepción cuando un error se ha encontrado durante una actualización de fila.Gets or sets a value that specifies whether to generate an exception when an error is encountered during a row update.

(Inherited from DataAdapter)
DeleteCommand DeleteCommand DeleteCommand DeleteCommand

Obtiene o establece una instrucción SQL o un procedimiento almacenado para eliminar registros del conjunto de datos.Gets or sets an SQL statement or stored procedure for deleting records from the data set.

DesignMode DesignMode DesignMode DesignMode

Obtiene un valor que indica si Component está actualmente en modo de diseño.Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
Events Events Events Events

Obtiene la lista de controladores de eventos asociados a Component.Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
FillCommandBehavior FillCommandBehavior FillCommandBehavior FillCommandBehavior

Obtiene o establece el comportamiento del comando utilizado para rellenar el adaptador de datos.Gets or sets the behavior of the command used to fill the data adapter.

(Inherited from DbDataAdapter)
FillLoadOption FillLoadOption FillLoadOption FillLoadOption

Obtiene o establece el LoadOption que determina cómo rellena el adaptador el DataTable desde el DbDataReader.Gets or sets the LoadOption that determines how the adapter fills the DataTable from the DbDataReader.

(Inherited from DataAdapter)
IDataAdapter.TableMappings IDataAdapter.TableMappings IDataAdapter.TableMappings IDataAdapter.TableMappings

Indica cómo se asigna una tabla de origen a una tabla de conjunto de datos.Indicates how a source table is mapped to a dataset table.

(Inherited from DataAdapter)
InsertCommand InsertCommand InsertCommand InsertCommand

Obtiene o establece una instrucción SQL o procedimiento almacenado utilizado para insertar nuevos registros en el origen de datos.Gets or sets an SQL statement or stored procedure used to insert new records into the data source.

MissingMappingAction MissingMappingAction MissingMappingAction MissingMappingAction

Determina la acción que se realizará cuando los datos entrantes no tiene una tabla o columna coincidente.Determines the action to take when incoming data does not have a matching table or column.

(Inherited from DataAdapter)
MissingSchemaAction MissingSchemaAction MissingSchemaAction MissingSchemaAction

Determina la acción que se realizará cuando existente DataSet esquema no coincide con los datos entrantes.Determines the action to take when existing DataSet schema does not match incoming data.

(Inherited from DataAdapter)
ReturnProviderSpecificTypes ReturnProviderSpecificTypes ReturnProviderSpecificTypes ReturnProviderSpecificTypes

Obtiene o establece si el Fill método debe devolver valores específicos del proveedor o valores comunes conforme a CLS.Gets or sets whether the Fill method should return provider-specific values or common CLS-compliant values.

(Inherited from DataAdapter)
SelectCommand SelectCommand SelectCommand SelectCommand

Obtiene o establece la instrucción SQL o el procedimiento almacenado utilizado para seleccionar registros del origen de datos.Gets or sets an SQL statement or stored procedure used to select records in the data source.

Site Site Site Site

Obtiene o establece el ISite de Component.Gets or sets the ISite of the Component.

(Inherited from Component)
TableMappings TableMappings TableMappings TableMappings

Obtiene una colección que proporciona la asignación principal entre una tabla de origen y un DataTable.Gets a collection that provides the master mapping between a source table and a DataTable.

(Inherited from DataAdapter)
UpdateBatchSize UpdateBatchSize UpdateBatchSize UpdateBatchSize

Obtiene o establece un valor que habilita o deshabilita la compatibilidad de procesamiento por lotes y especifica el número de comandos que se pueden ejecutar en un lote.Gets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch.

(Inherited from DbDataAdapter)
UpdateCommand UpdateCommand UpdateCommand UpdateCommand

Obtiene o establece una instrucción SQL o procedimiento almacenado utilizado para actualizar registros en el origen de datos.Gets or sets an SQL statement or stored procedure used to update records in the data source.

Métodos

AddToBatch(IDbCommand) AddToBatch(IDbCommand) AddToBatch(IDbCommand) AddToBatch(IDbCommand)

Agrega un IDbCommand al lote actual.Adds a IDbCommand to the current batch.

(Inherited from DbDataAdapter)
ClearBatch() ClearBatch() ClearBatch() ClearBatch()

Todos los quita IDbCommand objetos del lote.Removes all IDbCommand objects from the batch.

(Inherited from DbDataAdapter)
CloneInternals() CloneInternals() CloneInternals() CloneInternals()

Crea una copia de esta instancia de DataAdapter.Creates a copy of this instance of DataAdapter.

(Inherited from DataAdapter)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Crea un objeto que contiene toda la información relevante necesaria para generar un proxy utilizado para comunicarse con un objeto remoto.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping) CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping) CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping) CreateRowUpdatedEvent(DataRow, IDbCommand, StatementType, DataTableMapping)

Inicializa una nueva instancia de la clase RowUpdatedEventArgs.Initializes a new instance of the RowUpdatedEventArgs class.

(Inherited from DbDataAdapter)
CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping) CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping) CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping) CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping)

Inicializa una nueva instancia de la clase RowUpdatingEventArgs.Initializes a new instance of the RowUpdatingEventArgs class.

(Inherited from DbDataAdapter)
CreateTableMappings() CreateTableMappings() CreateTableMappings() CreateTableMappings()

Crea un nuevo DataTableMappingCollection.Creates a new DataTableMappingCollection.

(Inherited from DataAdapter)
Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos que usa Component.Releases all resources used by the Component.

(Inherited from Component)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera los recursos no administrados que usa DbDataAdapter y, de forma opcional, libera los recursos administrados.Releases the unmanaged resources used by the DbDataAdapter and optionally releases the managed resources.

(Inherited from DbDataAdapter)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExecuteBatch() ExecuteBatch() ExecuteBatch() ExecuteBatch()

Ejecuta el lote actual.Executes the current batch.

(Inherited from DbDataAdapter)
Fill(DataSet) Fill(DataSet) Fill(DataSet) Fill(DataSet)

Agrega o actualiza filas en el DataSet.Adds or refreshes rows in the DataSet.

(Inherited from DbDataAdapter)
Fill(DataSet, Int32, Int32, String) Fill(DataSet, Int32, Int32, String) Fill(DataSet, Int32, Int32, String) Fill(DataSet, Int32, Int32, String)

Agrega o actualiza filas en un intervalo especificado de la DataSet que coincidan con las del origen de datos mediante el DataSet y DataTable nombres.Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names.

(Inherited from DbDataAdapter)
Fill(DataSet, Int32, Int32, String, IDbCommand, CommandBehavior) Fill(DataSet, Int32, Int32, String, IDbCommand, CommandBehavior) Fill(DataSet, Int32, Int32, String, IDbCommand, CommandBehavior) Fill(DataSet, Int32, Int32, String, IDbCommand, CommandBehavior)

Agrega o actualiza filas en un intervalo especificado de la DataSet que coincidan con las del origen de datos mediante el DataSet y el comportamiento del comando, cadena de comandos y los nombres de tabla de origen.Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and source table names, command string, and command behavior.

(Inherited from DbDataAdapter)
Fill(DataSet, Object, String) Fill(DataSet, Object, String) Fill(DataSet, Object, String) Fill(DataSet, Object, String)

Agrega filas de DataSet o las actualiza para que coincidan con las de un objeto Recordset ADO o Record mediante el objeto DataSet, el objeto ADO y el nombre de tabla de origen especificados.Adds or refreshes rows in the DataSet to match those in an ADO Recordset or Record object using the specified DataSet, ADO object, and source table name.

Fill(DataSet, String) Fill(DataSet, String) Fill(DataSet, String) Fill(DataSet, String)

Agrega o actualiza filas en el DataSet que coincidan con las del origen de datos mediante el DataSet y DataTable nombres.Adds or refreshes rows in the DataSet to match those in the data source using the DataSet and DataTable names.

(Inherited from DbDataAdapter)
Fill(DataSet, String, IDataReader, Int32, Int32) Fill(DataSet, String, IDataReader, Int32, Int32) Fill(DataSet, String, IDataReader, Int32, Int32) Fill(DataSet, String, IDataReader, Int32, Int32)

Agrega o actualiza filas en un intervalo especificado de la DataSet que coincidan con las del origen de datos mediante el DataSet, DataTable, y IDataReader nombres.Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet, DataTable, and IDataReader names.

(Inherited from DbDataAdapter)
Fill(DataTable) Fill(DataTable) Fill(DataTable) Fill(DataTable)

Agrega o actualiza filas en un intervalo especificado de la DataSet que coincidan con las del origen de datos mediante el DataTable nombre.Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataTable name.

(Inherited from DbDataAdapter)
Fill(DataTable, IDataReader) Fill(DataTable, IDataReader) Fill(DataTable, IDataReader) Fill(DataTable, IDataReader)

Agrega o actualiza filas en un DataTable que coincidan con las del origen de datos usando el objeto DataTable y IDataReader nombres.Adds or refreshes rows in a DataTable to match those in the data source using the specified DataTable and IDataReader names.

(Inherited from DbDataAdapter)
Fill(DataTable, IDbCommand, CommandBehavior) Fill(DataTable, IDbCommand, CommandBehavior) Fill(DataTable, IDbCommand, CommandBehavior) Fill(DataTable, IDbCommand, CommandBehavior)

Agrega o actualiza filas en un DataTable que coincidan con las del origen de datos usando el objeto DataTable, IDbCommand y CommandBehavior.Adds or refreshes rows in a DataTable to match those in the data source using the specified DataTable, IDbCommand and CommandBehavior.

(Inherited from DbDataAdapter)
Fill(DataTable, Object) Fill(DataTable, Object) Fill(DataTable, Object) Fill(DataTable, Object)

Agrega filas a DataTable o las actualiza para que coincidan con las de un objeto Recordset o Record ADO, utilizando el objeto DataTable y los objetos ADO especificados.Adds or refreshes rows in a DataTable to match those in an ADO Recordset or Record object using the specified DataTable and ADO objects.

Fill(DataTable[], IDataReader, Int32, Int32) Fill(DataTable[], IDataReader, Int32, Int32) Fill(DataTable[], IDataReader, Int32, Int32) Fill(DataTable[], IDataReader, Int32, Int32)

Agrega o actualiza filas en un intervalo especificado de la colección de DataTable objetos que coincidan con las del origen de datos.Adds or refreshes rows in a specified range in the collection of DataTable objects to match those in the data source.

(Inherited from DataAdapter)
Fill(DataTable[], Int32, Int32, IDbCommand, CommandBehavior) Fill(DataTable[], Int32, Int32, IDbCommand, CommandBehavior) Fill(DataTable[], Int32, Int32, IDbCommand, CommandBehavior) Fill(DataTable[], Int32, Int32, IDbCommand, CommandBehavior)

Agrega o actualiza filas en un intervalo especificado de la DataSet que coincidan con las del origen de datos mediante el DataSet y DataTable nombres.Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names.

(Inherited from DbDataAdapter)
Fill(Int32, Int32, DataTable[]) Fill(Int32, Int32, DataTable[]) Fill(Int32, Int32, DataTable[]) Fill(Int32, Int32, DataTable[])

Agrega o actualiza filas en un DataTable que coincidan con las del origen de datos, empezando en el registro especificado y recuperando hasta el número máximo especificado de registros.Adds or refreshes rows in a DataTable to match those in the data source starting at the specified record and retrieving up to the specified maximum number of records.

(Inherited from DbDataAdapter)
FillSchema(DataSet, SchemaType) FillSchema(DataSet, SchemaType) FillSchema(DataSet, SchemaType) FillSchema(DataSet, SchemaType)

Agrega una DataTable denominada "Table" para el DataSet especificado y configura el esquema para que coincida con el origen de datos basado en el SchemaType especificado.Adds a DataTable named "Table" to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType.

(Inherited from DbDataAdapter)
FillSchema(DataSet, SchemaType, IDbCommand, String, CommandBehavior) FillSchema(DataSet, SchemaType, IDbCommand, String, CommandBehavior) FillSchema(DataSet, SchemaType, IDbCommand, String, CommandBehavior) FillSchema(DataSet, SchemaType, IDbCommand, String, CommandBehavior)

Agrega un DataTable especificado DataSet y configura el esquema para que coincida con el origen de datos según lo especificado SchemaType.Adds a DataTable to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType.

(Inherited from DbDataAdapter)
FillSchema(DataSet, SchemaType, String) FillSchema(DataSet, SchemaType, String) FillSchema(DataSet, SchemaType, String) FillSchema(DataSet, SchemaType, String)

Agrega un elemento DataTable denominado "Table" para el elemento DataSet especificado y configura el esquema para que coincida con el del origen de datos basado en los elementos especificados SchemaType y DataTable.Adds a DataTable to the specified DataSet and configures the schema to match that in the data source based upon the specified SchemaType and DataTable.

(Inherited from DbDataAdapter)
FillSchema(DataSet, SchemaType, String, IDataReader) FillSchema(DataSet, SchemaType, String, IDataReader) FillSchema(DataSet, SchemaType, String, IDataReader) FillSchema(DataSet, SchemaType, String, IDataReader)

Agrega un DataTable especificado DataSet.Adds a DataTable to the specified DataSet.

(Inherited from DataAdapter)
FillSchema(DataTable, SchemaType) FillSchema(DataTable, SchemaType) FillSchema(DataTable, SchemaType) FillSchema(DataTable, SchemaType)

Configura el esquema del elemento DataTable especificado en función del elemento SchemaType especificado.Configures the schema of the specified DataTable based on the specified SchemaType.

(Inherited from DbDataAdapter)
FillSchema(DataTable, SchemaType, IDataReader) FillSchema(DataTable, SchemaType, IDataReader) FillSchema(DataTable, SchemaType, IDataReader) FillSchema(DataTable, SchemaType, IDataReader)

Agrega un DataTable especificado DataSet.Adds a DataTable to the specified DataSet.

(Inherited from DataAdapter)
FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior) FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior) FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior) FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior)

Configura el esquema del elemento especificado DataTable según lo especificado SchemaType, cadena de comando y CommandBehavior valores.Configures the schema of the specified DataTable based on the specified SchemaType, command string, and CommandBehavior values.

(Inherited from DbDataAdapter)
GetBatchedParameter(Int32, Int32) GetBatchedParameter(Int32, Int32) GetBatchedParameter(Int32, Int32) GetBatchedParameter(Int32, Int32)

Devuelve un IDataParameter desde uno de los comandos del lote actual.Returns a IDataParameter from one of the commands in the current batch.

(Inherited from DbDataAdapter)
GetBatchedRecordsAffected(Int32, Int32, Exception) GetBatchedRecordsAffected(Int32, Int32, Exception) GetBatchedRecordsAffected(Int32, Int32, Exception) GetBatchedRecordsAffected(Int32, Int32, Exception)

Devuelve información sobre un intento de actualización individual dentro de una actualización por lotes más grande.Returns information about an individual update attempt within a larger batched update.

(Inherited from DbDataAdapter)
GetFillParameters() GetFillParameters() GetFillParameters() GetFillParameters()

Obtiene los parámetros establecidos por el usuario al ejecutar una instrucción SELECT de SQL.Gets the parameters set by the user when executing an SQL SELECT statement.

(Inherited from DbDataAdapter)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Recupera el objeto de servicio de duración actual que controla la directiva de duración de esta instancia.Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Devuelve un objeto que representa el servicio suministrado por Component o por Container.Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
HasTableMappings() HasTableMappings() HasTableMappings() HasTableMappings()

Indica si un DataTableMappingCollection se ha creado.Indicates whether a DataTableMappingCollection has been created.

(Inherited from DataAdapter)
InitializeBatching() InitializeBatching() InitializeBatching() InitializeBatching()

Inicializa el procesamiento por lotes para el DbDataAdapter.Initializes batching for the DbDataAdapter.

(Inherited from DbDataAdapter)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtiene un objeto de servicio de duración para controlar la directiva de duración de esta instancia.Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Crea una copia superficial del objeto MarshalByRefObject actual.Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
OnFillError(FillErrorEventArgs) OnFillError(FillErrorEventArgs) OnFillError(FillErrorEventArgs) OnFillError(FillErrorEventArgs)

Genera el evento FillError.Raises the FillError event.

(Inherited from DbDataAdapter)
OnRowUpdated(RowUpdatedEventArgs) OnRowUpdated(RowUpdatedEventArgs) OnRowUpdated(RowUpdatedEventArgs) OnRowUpdated(RowUpdatedEventArgs)

Provoca el RowUpdated eventos de un proveedor de datos de .NET Framework.Raises the RowUpdated event of a .NET Framework data provider.

(Inherited from DbDataAdapter)
OnRowUpdating(RowUpdatingEventArgs) OnRowUpdating(RowUpdatingEventArgs) OnRowUpdating(RowUpdatingEventArgs) OnRowUpdating(RowUpdatingEventArgs)

Provoca el RowUpdating eventos de un proveedor de datos de .NET Framework.Raises the RowUpdating event of a .NET Framework data provider.

(Inherited from DbDataAdapter)
ResetFillLoadOption() ResetFillLoadOption() ResetFillLoadOption() ResetFillLoadOption()

Restablece FillLoadOption a su estado predeterminado y causas Fill(DataSet) respetando AcceptChangesDuringFill.Resets FillLoadOption to its default state and causes Fill(DataSet) to honor AcceptChangesDuringFill.

(Inherited from DataAdapter)
ShouldSerializeAcceptChangesDuringFill() ShouldSerializeAcceptChangesDuringFill() ShouldSerializeAcceptChangesDuringFill() ShouldSerializeAcceptChangesDuringFill()

Determina si el AcceptChangesDuringFill debe persistir la propiedad.Determines whether the AcceptChangesDuringFill property should be persisted.

(Inherited from DataAdapter)
ShouldSerializeFillLoadOption() ShouldSerializeFillLoadOption() ShouldSerializeFillLoadOption() ShouldSerializeFillLoadOption()

Determina si el FillLoadOption debe persistir la propiedad.Determines whether the FillLoadOption property should be persisted.

(Inherited from DataAdapter)
ShouldSerializeTableMappings() ShouldSerializeTableMappings() ShouldSerializeTableMappings() ShouldSerializeTableMappings()

Determina si uno o más DataTableMapping objetos existen y deben conservarse.Determines whether one or more DataTableMapping objects exist and they should be persisted.

(Inherited from DataAdapter)
TerminateBatching() TerminateBatching() TerminateBatching() TerminateBatching()

Finaliza el procesamiento por lotes para el DbDataAdapter.Ends batching for the DbDataAdapter.

(Inherited from DbDataAdapter)
ToString() ToString() ToString() ToString()

Devuelve una String que contiene el nombre del Component, si existe.Returns a String containing the name of the Component, if any. Este método no se debe invalidar.This method should not be overridden.

(Inherited from Component)
Update(DataRow[]) Update(DataRow[]) Update(DataRow[]) Update(DataRow[])

Actualiza los valores de la base de datos ejecutando las instrucciones INSERT, UPDATE o DELETE respectivas para cada inserta, actualiza o elimina la fila de la matriz especificada en el DataSet.Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array in the DataSet.

(Inherited from DbDataAdapter)
Update(DataRow[], DataTableMapping) Update(DataRow[], DataTableMapping) Update(DataRow[], DataTableMapping) Update(DataRow[], DataTableMapping)

Actualiza los valores de la base de datos ejecutando las instrucciones INSERT, UPDATE o DELETE respectivas para cada inserta, actualiza o elimina la fila de la matriz especificada de DataSet objetos.Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array of DataSet objects.

(Inherited from DbDataAdapter)
Update(DataSet) Update(DataSet) Update(DataSet) Update(DataSet)

Actualiza los valores de la base de datos ejecutando las instrucciones INSERT, UPDATE o DELETE respectivas para cada inserta, actualiza o elimina filas en la instancia especificada DataSet.Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataSet.

(Inherited from DbDataAdapter)
Update(DataSet, String) Update(DataSet, String) Update(DataSet, String) Update(DataSet, String)

Actualiza los valores de la base de datos al ejecutar las instrucciones INSERT, UPDATE o DELETE respectivas para cada fila insertada, actualizada o eliminada en los objetos DataSet con el nombre de DataTable especificado.Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the DataSet with the specified DataTable name.

(Inherited from DbDataAdapter)
Update(DataTable) Update(DataTable) Update(DataTable) Update(DataTable)

Actualiza los valores de la base de datos ejecutando las instrucciones INSERT, UPDATE o DELETE respectivas para cada inserta, actualiza o elimina filas en la instancia especificada DataTable.Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataTable.

(Inherited from DbDataAdapter)

Eventos

Disposed Disposed Disposed Disposed

Se produce cuando el componente se elimina mediante una llamada al método Dispose().Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)
FillError FillError FillError FillError

Se devuelve cuando se produce un error durante una operación de relleno.Returned when an error occurs during a fill operation.

(Inherited from DbDataAdapter)
RowUpdated RowUpdated RowUpdated RowUpdated

Se produce durante Update(DataSet) después de que se ejecute un comando en el origen de datos.Occurs during Update(DataSet) after a command is executed against the data source. Se ha producido un intento de actualización.The attempt to update is made. Por lo tanto, se produce el evento.Therefore, the event occurs.

RowUpdating RowUpdating RowUpdating RowUpdating

Se produce durante el método Update(DataSet), antes de que se ejecute un comando en el origen de datos.Occurs during Update(DataSet) before a command is executed against the data source. Se ha producido un intento de actualización.The attempt to update is made. Por lo tanto, se produce el evento.Therefore, the event occurs.

Implementaciones de interfaz explícitas

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

Para obtener una descripción de este miembro, vea Clone().For a description of this member, see Clone().

IDbDataAdapter.DeleteCommand IDbDataAdapter.DeleteCommand IDbDataAdapter.DeleteCommand IDbDataAdapter.DeleteCommand

Para obtener una descripción de este miembro, vea DeleteCommand.For a description of this member, see DeleteCommand.

IDbDataAdapter.InsertCommand IDbDataAdapter.InsertCommand IDbDataAdapter.InsertCommand IDbDataAdapter.InsertCommand

Para obtener una descripción de este miembro, vea InsertCommand.For a description of this member, see InsertCommand.

IDbDataAdapter.SelectCommand IDbDataAdapter.SelectCommand IDbDataAdapter.SelectCommand IDbDataAdapter.SelectCommand

Para obtener una descripción de este miembro, vea SelectCommand.For a description of this member, see SelectCommand.

IDbDataAdapter.UpdateCommand IDbDataAdapter.UpdateCommand IDbDataAdapter.UpdateCommand IDbDataAdapter.UpdateCommand

Para obtener una descripción de este miembro, vea UpdateCommand.For a description of this member, see UpdateCommand.

Campos

DefaultSourceTableName DefaultSourceTableName DefaultSourceTableName DefaultSourceTableName

El nombre predeterminado usado por el DataAdapter objeto para las asignaciones de tabla.The default name used by the DataAdapter object for table mappings.

(Inherited from DbDataAdapter)

Se aplica a

Consulte también: