TableMappings Property
Collapse the table of content
Expand the table of content

IDataAdapter.TableMappings Property


Indicates how a source table is mapped to a dataset table.

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

ITableMappingCollection TableMappings { get; }

Property Value

Type: System.Data.ITableMappingCollection

A collection that provides the master mapping between the returned records and the DataSet. The default value is an empty collection.

The IDataAdapter uses only the mappings for the source table named "Table". All SELECT, INSERT, DELETE, and UPDATE statements returning data must do so using consistent column naming. The column names returned in the records must be unique, otherwise columns with duplicate names overwrite previous data. On Update, only the table mapped to the source table named "Table" will have its changes reconciled.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft