System.Data.Common Namespace DataTableMapping Class
Initializes a new instance of a DataTableMapping class.
1. Initializes a new instance of a DataTableMapping class.
2. Initializes a new instance of a DataTableMapping class with the specified source table name and DataSet table name to map to.
3. Initializes a new instance of a DataTableMapping class with the specified source table name and DataSet table name, and an array of DataColumnMapping objects.
The following example initializes a DataTableMapping object, and sets it properties.
NOTE: This example [ C# ] shows how to use one of the overloaded versions of the DataTableMapping constructor. For other examples that may be available, see the individual overload topics.
void CreateDataTableMapping ( DataColumnMapping [ ] myFields ) {
DataTableMapping myMap = new DataTableMapping
( "Description", "DataDescription", myFields );
}
Sub CreateDataTableMapping ( ByVal myFields ( ) as DataColumnMapping )
Dim myMap As New DataTableMapping _
( "Description", "DataDescription", myFields )
End Sub |
|
C# |
VB |
DataTableMapping Members