IDataAdapter.TableMappings Property

Definition

Gets a collection that indicates how a source table is mapped to a dataset table.

C#
public System.Data.ITableMappingCollection TableMappings { get; }

Property Value

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

Remarks

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.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1