如何将绑定源与多个表一起使用? [英] How do I use a binding source with multiple tables?

查看:88
本文介绍了如何将绑定源与多个表一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用5个表,并且我创建了一个使用主表作为绑定数据的绑定源。但是,我想绑定到所有表并能够更新它们。有关如何做到这一点的任何建议?可能是任何特定于使用带有绑定源的多个表格的文章?



我尝试过的方法:



最初,我打算制作一个结合所有数据的连接语句,然后将其用作绑定源数据。这将用于显示数据,但这不会更新连接中使用的表。

I have 5 tables I am working with, and I have created a binding source that uses the main table as the data used for binding. However, I am wanting to bind to all tables and be able to update them. any suggestions on how to do this? Possibly any articles that are specific to using multiple tables with a binding source?

What I have tried:

Originally, I was going to make a join statement that combined all data and then use that as the binding source data. This will work for displaying data, but this will not update the tables that are used in the join.

推荐答案

根据您的描述,我建议使用 DataSet [ ^ ],其中代表一组完整的数据,包括包含,排序和约束数据的表,以及表之间的关系
Based on your description, i'd suggest to use a DataSet[^], which "represents a complete set of data including the tables that contain, order, and constrain the data, as well as the relationships between the tables".


这篇关于如何将绑定源与多个表一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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