Allows an object to implement a DataAdapter, and represents a set of methods and mapping action-related properties that are used to fill and update a DataSet and update a data source.
IDbDataAdapter instances are for data sources that are (or resemble) relational databases with textual commands (like Transact-SQL), while instances could can use any type of data source.
Assembly: System.Data (in System.Data.dll)
Indicates or specifies whether unmapped source tables or columns are passed with their source names in order to be filtered or to raise an error.
Indicates or specifies whether missing source tables, columns, and their relationships are added to the dataset schema, ignored, or cause an error to be raised.
Indicates how a source table is mapped to a dataset table.
Gets the parameters set by the user when executing an SQL SELECT statement.
An application does not create an instance of theinterface directly, but implements an instance of a class that inherits .
Classes that inherit Fill method that takes a DataSet as a parameter. In turn, the OleDbDataAdapter class inherits the Fill method and also defines two additional overloads of the Fill method that take an ADO Recordset object as a parameter.must implement the inherited members, and they typically define additional members to add provider-specific functionality. For example, the interface defines a
Notes to Implementers:
To promote consistency among .NET Framework data providers, name the inheriting class in the form Prv DataAdapter where Prv is the uniform prefix given to all classes in a specific .NET Framework data provider namespace. For example, Sql is the prefix of the SqlDataAdapter class in the System.Data.SqlClient namespace.
When you inherit from theinterface, you should implement the following constructors:
Initializes a new instance of the PrvDataAdapter class.
Initializes a new instance of the PrvDataAdapter class by using the specified SQL SELECT statement.
PrvDataAdapter(string selectCommandText, string selectConnectionString)
Initializes a new instance of the PrvDataAdapter class by using an SQL SELECT statement and a connection string.
PrvDataAdapter(string selectCommandText, PrvConnection selectConnection)
Initializes a new instance of the PrvDataAdapter class by using an SQL SELECT statement and a PrvConnection object.
The following example uses the derived classes, SqlCommand, SqlDataAdapter, and SqlConnection, to select records from a database. The filled DataSet is then returned. To do this, the method is passed an initialized DataSet, a connection string, and a query string that is a Transact-SQL SELECT statement.
Available since 1.1