IQueryable<T> from raw SQL

不问归期 提交于 2019-12-11 18:32:32

问题


In Entity Framework 7, there is DbSet.FromSql, which seems to me that allows to create IQueryable<> from raw SQL. According to the doc:

Raw SQL queries provides the DbSet.FromSql method to use raw SQL queries to fetch data. These queries can also be composed on using LINQ.

How to implement something similar in old LINQ to SQL?

来源:https://stackoverflow.com/questions/32144330/iqueryablet-from-raw-sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!