无法在 linq 中使用 CopyToDataTable 返回数据集
如何从.net 3.5中的linq
返回数据集
?
我在某些网站上看到使用了 CopyToDataTable 方法,但我无法使用该方法,因为我在参考列表中找不到 System.data.datatableextensions 参考。 请帮帮我。
谢谢和问候, 维纳
how to return a dataset
from linq
in .net 3.5?
I have seen in some sites that CopyToDataTable method is used but I am not able to use that methos as I cannot find System.data.datatableextensions reference in the ref list.
Please help me out.
Thanks and regards,
veena
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这也适用于 VB.NET,只是您必须将查询变量声明为 IEnumerable(Of DataRow),而不是仅放置 Dim 关键字。
Which also goes for VB.NET, only you have to declare query variable as IEnumerable(Of DataRow) instead putting only Dim keyword.
直接从此处复制。询问之前尝试搜索
Copied Directly from here. Try to search before asking