190 likes | 459 Views
ADO.NET. Doug Waterman Fox Valley Technical College. How do we connect?. How do we connect?. ADO.NET. Connection. Connection. .Connection String. UserName Password DataProvider. Command. Command . CommandText (SQL) . CommandType .Connection. Connection. .Connection String.
E N D
ADO.NET Doug Waterman Fox Valley Technical College
How do we connect? ADO.NET
Connection Connection .Connection String UserName Password DataProvider
Command Command .CommandText (SQL) .CommandType .Connection Connection .Connection String UserName Password DataProvider
DataAdapter D DataAdapter SelectCommand .CommandText (SQL) .CommandType .Connection Connection InsertCommand .CommandText (SQL) .CommandType .Connection Connection UpdateCommand .CommandText (SQL) .CommandType .Connection Connection DeleteCommand .CommandText (SQL) .CommandType .Connection Connection
Data Layer DataSetor DataTable Data Layer Object DataAdapter IndividualData Requests Command Command
DataSet In-memory cache of data retrieved from a data source May contain 0-X DataTables Also has methods for dealing with the DataTables
DataTable Represents one table of in-memory data. May be stand-alone or in a DataSet. Caches current and original data. Has methods and events for dealing with the data.
DataSet DataTable(0) DataTable(1) In-memory cache of data retrieved from a data source May contain 0-X DataTables Also has methods for dealing with the DataTables