IDataAdapter.TableMappings 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个集合,该集合指示源表如何映射到数据集表。
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
属性值
A collection that provides the primary mapping between the returned records and the DataSet. 默认值为空集合。
注解
仅 IDataAdapter 对名为“Table”的源表使用映射。 返回数据的所有 SELECT、INSERT、DELETE 和 UPDATE 语句都必须使用一致的列命名执行此操作。 记录中返回的列名必须是唯一的,否则具有重复名称的列将覆盖以前的数据。 打开时 Update,只有映射到名为“Table”的源表才会进行更改协调。