数据集属性 [英] DataSet properties

查看:121
本文介绍了数据集属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在使用SQL2008 datbase在VS2008中开发的Windows应用程序.
我试图在其中一个DataSet表中找到其中一个数据行的源表.
有问题的行可以设置为三个表中任何一个具有相同名称的列.
有没有一种方法可以检查DataSet属性,以查看它是从哪个表中提取来填充每一行的?
在设计器中查看提供了非常详细的信息.

Hello,
I am working on a Windows Application developed in VS2008 on SQL2000 datbase.
I am trying to find the source table for on of the datarows in one of the DataSet tables.
The row in question could have been set to any of three tables with a column of the same name.
Is there a way to examine the DataSet properties to see which table it is pulling from to populate each row?
Viewing in designer offers very litle detail.

推荐答案

我认为没有一种方法可以知道从中填充数据的数据库中的表名. DataRow的表"属性提供有关该行所属的数据表的信息.将数据填充到DataTable中时,必须将信息保留在局部变量中.
I do not think there is a way to know the Table name in Database from which the data was populated. The "Table" property of DataRow provides information about the DataTable that the row belongs to. You have to keep the information in a local variable when the data is populated into the DataTable.


找到它.

如果有人像我一样缺乏经验:

可以在数据源"选项卡上找到所有具有相应源表的数据集的列表
Found it.

In case someone else is as in-experienced as I:

A list of all the Data Sets with corresponding source tables can be found on the Data Sources Tab


这篇关于数据集属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆