DataColumnMapping Class
Assembly: System.Data (in system.data.dll)
[TypeConverterAttribute(typeof(DataColumnMappingConverter))] public sealed class DataColumnMapping : MarshalByRefObject, IColumnMapping, ICloneable
/** @attribute TypeConverterAttribute(System.Data.Common.DataColumnMapping+DataColumnMappingConverter) */ public final class DataColumnMapping extends MarshalByRefObject implements IColumnMapping, ICloneable
TypeConverterAttribute(System.Data.Common.DataColumnMapping+DataColumnMappingConverter) public final class DataColumnMapping extends MarshalByRefObject implements IColumnMapping, ICloneable
Not applicable.
A DataColumnMapping enables you to use column names in a DataTable that are different from those in the data source. The DataAdapter uses the mapping to match the columns when the tables in the DataSet or data source are updated. For more information, see Setting Up DataTable and DataColumn Mappings.
The following example creates a DataColumnMapping object and adds it to a DataColumnMappingCollection. It then tells the user that the mapping was added to the collection and shows the Parent for the mapping.
public void AddDataColumnMapping() { // ... // create columnMappings // ... DataColumnMapping mapping = new DataColumnMapping("Description","DataDescription"); columnMappings.Add((Object) mapping); Console.WriteLine("Column {0} added to column mapping collection {1}.", mapping.ToString(), columnMappings.ToString()); }
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.