join和linq to dataset [英] join and linq to dataset

查看:91
本文介绍了join和linq to dataset的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。在我的DAL中,我有一个函数在两个数据表之间创建连接,使用linq到dataest。
但我不知道我可以从该函数返回什么类型的对象并填充数据网格加入resaults。
我尝试将它转换为dataview但我无法。你能告诉我一个简单的例子吗?
谢谢。


shachar

解决方案


你可以创建一类返回类型的对象。
希望能够帮助你。
谢谢..

hi all.
in my DAL, i have a function that's creating join between 2 datatables, using linq to dataest.
but i dont know what kind of object can i return from that function and fill a datagrid with the join resaults.
i tried converting it to dataview but i couldnt.
can you show me a simple example?
thanks.


shachar

解决方案

Hi,
you can make a class of return type objects.
cast in that hopefully that will help you.
Thanks..


这篇关于join和linq to dataset的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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