IDataAdapter.TableMappings Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

abstract TableMappings : ITableMappingCollection with 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
Show: