Linq to sql convert IQueryable to Dataset

前端 未结 4 502
谎友^
谎友^ 2021-01-06 11:48

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

4条回答
  •  长发绾君心
    2021-01-06 12:15

    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)

提交回复
热议问题