System.Data.Common Namespace DbDataAdapter Class
Adds or refreshes rows in the DataSet to match those in the data source.
1. Adds or refreshes rows in the DataSet to match those in the data source using the DataSet name, and initializes a DataTable named "Table".
2. Adds or refreshes rows in a DataTable to match those in the data source using the DataTable name.
3. Adds or refreshes rows in the DataSet to match those in the data source using the DataSet and DataTable names.
4. Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names.
NOTE: This example uses one of the overloaded versions of Fill. For other examples that may be available, see the individual overload topics.
void FillDemo ( ) {
// . . . code to initialize DataAdapter and DataSet here . . .
myDataAdapter.Fill ( myDataSet, "Products" );
}
Public Sub FillDemo ( )
' . . . code to initialize DataAdapter and DataSet here . . .
myDataAdapter.Fill ( myDataSet, "Products" )
End Sub |
|
C# |
VB |
DbDataAdapter Members FillSchema