How I can send a linq query as string to Entity Framework for example:
from s in students select s
I want to compile this in oracle and sql server
How I can send a linq query as string to Entity Framework 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