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
精彩评论