Name
DataColumnMapping
Synopsis
This class represents a mapping between a field (or column) name in
the data source (SourceColumn) and the field name
in the System.Data.DataSet
(DataSetColumn). The data source column name is
case-sensitive, while the System.Data.DataSet
column name isn’t.
Column mappings are applied to the DataAdapter you
use to transfer information. Column mappings work in both directions:
in other words, the DataAdapter automatically maps
the column when filling it with the appropriate data and can apply
any changes back to the original data source column during updates.
Column mappings are never added independently to a
DataAdapter; instead, they are added to a
DataTableMapping, which can then be added to the
DataAdapter.TableMappings collection.
public sealed class DataColumnMapping : MarshalByRefObject, System.Data.IColumnMapping, ICloneable { // Public Constructors public DataColumnMapping( ); public DataColumnMapping(stringsourceColumn, stringdataSetColumn); // Public Instance Properties public string DataSetColumn{set; get; } // implements System.Data.IColumnMapping public string SourceColumn{set; get; } // implements System.Data.IColumnMapping // Public Instance Methods public DataColumn GetDataColumnBySchemaAction(System.Data.DataTabledataTable, TypedataType, System.Data.MissingSchemaActionschemaAction); public override string ToString( ); // overrides object }
Hierarchy
System.Object
→
System.MarshalByRefObject
→
DataColumnMapping(System.Data.IColumnMapping ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access