Name
SqlDataAdapter
Synopsis
This class represents a data adapter that can retrieve information
from a SQL Server database to a
System.Data.DataSet
and update that database with
changes made to the DataSet
. For information
about the basic SqlDataAdapter
methods and
properties, refer to the reference for the
System.Data.IDbDataAdapter
and
System.Data.IDataAdapter
interfaces, which
SqlDataAdapter
implements.
public sealed class SqlDataAdapter : System.Data.Common.DbDataAdapter, System.Data.IDbDataAdapter { // Public Constructors public SqlDataAdapter( ); public SqlDataAdapter(SqlCommandselectCommand
); public SqlDataAdapter(stringselectCommandText
, SqlConnectionselectConnection
); public SqlDataAdapter(stringselectCommandText
, stringselectConnectionString
); // Public Instance Properties public SqlCommand DeleteCommand{set; get; } public SqlCommand InsertCommand{set; get; } public SqlCommand SelectCommand{set; get; } public SqlCommand UpdateCommand{set; get; } // Protected Instance Methods protected override RowUpdatedEventArgs CreateRowUpdatedEvent(System.Data.DataRowdataRow
, System.Data.IDbCommandcommand
, System.Data.StatementTypestatementType
, System.Data.Common.DataTableMappingtableMapping
);// overrides System.Data.Common.DbDataAdapter protected override RowUpdatingEventArgs CreateRowUpdatingEvent(System.Data.DataRowdataRow
, System.Data. DataRowdataRow
, System.Data.IDbCommandcommand
, System.Data.StatementTypestatementType
, System.Data.Common.DataTableMappingtableMapping ...
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.