LINQ to SQL的转换IQueryable的数据集来 [英] Linq to sql convert IQueryable to Dataset

查看:167
本文介绍了LINQ to SQL的转换IQueryable的数据集来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是一个IQueryable对象转换为数据集的最简单方法。

What is the easiest way to convert an IQueryable object to a dataset?

推荐答案

modelshredder 有正是你需要的。如果你有DataContext的周围,不需要你的模型也方面的数据,nitzmahone的解决方案是性能优良的明智

modelshredder has exactly what you need. If you have the datacontext around and don't need the data in terms of your model also, nitzmahone' solution is fine performance wise (if it matches your setup, which is not clear to me)

这篇关于LINQ to SQL的转换IQueryable的数据集来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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