asp.net.ph

DbDataAdapter.FillSchema Method

System.Data.Common Namespace   DbDataAdapter Class


Loads a DataTable to a DataSet and configures the schema to match that in the data source.

Overload List

1. Loads a DataTable to the specified DataSet and configures the schema of the table to match that in the data source based on the specified SchemaType.

2. Loads a DataTable to the current DataSet and configures the schema of the table to match that in the data source based on the specified SchemaType.

3. Loads a DataTable to the specified DataSet and configures the schema of the table based on the specified SchemaType and the given source table.


Example

NOTE: This example uses one of the overloaded versions of FillSchema. For other examples that may be available, see the individual overload topics.

void FillSchemaDemo ( ( ) {
   // . . . code to initialize DataAdapter and DataSet here . . .

   DataTable [ ] myTableArray = myDataAdapter.FillSchema (
      myDataSet, SchemaType.Mapped, "Categories" );
}
  C# VB

See Also

DbDataAdapter Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph