请帮助尝试使用Linq to Sql将2个表中的数据加载到Treeview中 [英] please help trying to load data from 2 tables into a treeview using Linq to Sql
本文介绍了请帮助尝试使用Linq to Sql将2个表中的数据加载到Treeview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在互联网上寻找解决方案,我只是想不出如何加载两个表中的记录.虽然两个表中的关系已经在数据库级别建立,但是我希望将这两个表加载到数据集中,这反过来将用于更新treeview,
不知道我是否清楚自己的意思,但是我现在真的需要帮助
i have been looking around the internet for a solution ,i just cant fig out how to load a record which are in two tables. while the relationship in the two table have already Established on the database level but i want this two tables loaded in a dataset ,which inturn would be used to update the treeview ,
dont know if i have made my self clear ,but i really need help right now
推荐答案
您是否尝试过加入餐桌?
LINQ-联接运算符 [
Hi,
Have you tried joining your tables?
LINQ - Join Operators[^]
Hope it helps.
感谢您的帮助,因此必须阅读
thanks for the help ,would have to read that
这篇关于请帮助尝试使用Linq to Sql将2个表中的数据加载到Treeview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文