开发者

Sending LINQ Query to Entity Framework as string

开发者 https://www.devze.com 2023-01-26 21:10 出处:网络
How I can send a linq query as string to Entity Framew开发者_Go百科ork for example: from s in students select s

How I can send a linq query as string to Entity Framew开发者_Go百科ork for example:

from s in students select s

I want to compile this in oracle and sql server


You might want to have a look at Entity SQL.
Here is an example: http://msdn.microsoft.com/en-us/library/bb738684.aspx

Another possibility is Dynamic LINQ.


i use Dynamic Linq to dynamically construct linq queries at run time

http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消