System.Data.Common Namespace DataColumnMapping Class
Sets or retrieves the case-sensitive column name from a data source to map from.
Script |
DataColumnMapping.SourceColumn [ = strName ] |
strName |
The case-sensitive column name from a data source to map from. |
The property is read/write with no default value.
IColumnMapping.SourceColumn
The following example shows one way of setting the SourceColumn property.
void CreateDataColumnMapping ( ) {
DataColumnMapping myMap = new DataColumnMapping ( );
myMap.SourceColumn = "Description";
myMap.DataSetColumn = "DataDescription";
}
Sub CreateDataColumnMapping ( )
Dim myMap As New DataColumnMapping ( )
myMap.SourceColumn = "Description"
myMap.DataSetColumn = "DataDescription"
End Sub |
|
C# |
VB |
DataColumnMapping Members