asp.net.ph

DataTableMapping Constructor ( String, String, DataColumnMapping [ ] )

System.Data.Common Namespace   DataTableMapping Class


Initializes a new instance of a DataTableMapping class with the specified source table name and DataSet table name, and an array of DataColumnMapping objects.

[ VB ]
Overloads Public Sub New ( _
   ByVal sourceTable As String, _
   ByVal dataSetTable As String _
   ByVal columnMappings ( ) As DataColumnMapping _
)

[ C# ]
public DataTableMapping (
   string sourceTable,
   string dataSetTable
   DataColumnMapping [ ] columnMappings
);

[ C++ ]
public: DataTableMapping (
   String* sourceTable,
   String* dataSetTable
   DataColumnMapping* columnMappings [ ]
);

[ JScript ]
public function DataTableMapping (
   sourceTable : String,
   dataSetTable : String
   columnMappings : DataColumnMapping [ ]
);

Parameters

sourceTable
The case-sensitive name of a SourceTable to map from.
dataSetTable
The case-insensitive name of a DataSetTable to map to.
columnMappings
An array of DataColumnMapping objects.

Example

The following example initializes a DataTableMapping object using this constructor.

void CreateDataTableMapping ( DataColumnMapping [ ] myFields ) {
   DataTableMapping myMap = new DataTableMapping 
      ( "Description", "DataDescription", myFields );
}
  C# VB

See Also

DataTableMapping Members   DataTableMapping Constructor Overload List 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