如何使用linq返回数据集 [英] How to return dataset using linq

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

问题描述

您好



请告诉我在linq中我们可以返回数据集。

谢谢&Regard



Hans raj

Hello

Please let me know is that possible in linq that we can return dataset .
Thanks & Regard

Hans raj

推荐答案

Google是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题......



快速搜索 使用您的主题作为搜索词 提供了超过50万条结果: Google:如何使用linq返回数据集 [< a href =https://www.google.co.uk/search?q=How+to+return+dataset+using+linq&oq=How+to+return+dataset+using+linq&aqs=chrome。 .69i57j0l2j69i60.4236j0j7& sourceid = chrome& es_sm = 93& ie = UTF-8target =_ blanktitle =New Window> ^ ]



将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的时间。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave over half a million results: Google: "How to return dataset using linq"[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


创建你自己的方法或找到转换List< t>的代码。到DataTable(示例 [ ^ ])

你可以简单地从tatables创建DataSet。

参考:

如何:实施CopyToDataTable< t>通用类型T不是DataRow的地方 [ ^ ]

创建一个DataTable从查询(LINQ到DataSet) [ ^ ]
Create your own method or find code to convert List<t> to DataTable (Example[^])
You can simply create DataSet from tatables.
refer :
How to: Implement CopyToDataTable<t> Where the Generic Type T Is Not a DataRow[^]
Creating a DataTable From a Query (LINQ to DataSet)[^]


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

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