IDataAdapter.TableMappings 属性

定义

获取一个集合,该集合指示源表如何映射到数据集表。

public:
 property System::Data::ITableMappingCollection ^ TableMappings { System::Data::ITableMappingCollection ^ get(); };
public System.Data.ITableMappingCollection TableMappings { get; }
member this.TableMappings : System.Data.ITableMappingCollection
Public ReadOnly Property TableMappings As ITableMappingCollection

属性值

ITableMappingCollection

A collection that provides the primary mapping between the returned records and the DataSet. 默认值为空集合。

注解

IDataAdapter 对名为“Table”的源表使用映射。 返回数据的所有 SELECT、INSERT、DELETE 和 UPDATE 语句都必须使用一致的列命名执行此操作。 记录中返回的列名必须是唯一的,否则具有重复名称的列将覆盖以前的数据。 打开时 Update,只有映射到名为“Table”的源表才会进行更改协调。

适用于