我有一个数据集,其中包含 2 个数据表,它们使用 DataRelation 链接在一起。
是否可以从这些表中选择到一个结果集中?
谢谢,奥弗
Microsoft's suggestion is to create a helper class. See:
http://support.microsoft.com/kb/326080/en-us
This is a general purpose tool that can be used no matter what the source.
您可以使用 VS DataSet 编辑器创建 JOIN 表,并结合您的结果 - 然后您可以针对它编写 Select 查询并从您的应用程序中调用它们。
为此,只需创建一个新的 TableAdapter,然后将两个表添加到编辑器中(使用可视化的),然后从两个表中选择要使用的字段,然后编写相关的选择函数。