DataTableMapping Constructor (String, String)


Initializes a new instance of the DataTableMapping class with a source when given a source table name and a DataTable name.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public DataTableMapping(
	string sourceTable,
	string dataSetTable


Type: System.String

The case-sensitive source table name from a data source.

Type: System.String

The table name from a DataSet to map to.

The following example creates a DataTableMapping object and sets some of its properties.

public void CreateDataTableMapping() 
    DataTableMapping mapping = 
        new DataTableMapping("Categories","DataCategories");

.NET Framework
Available since 1.1
Return to top