kamiar3001
kamiar3001

Reputation: 2676

Sending LINQ Query to Entity Framework as string

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

Upvotes: 3

Views: 5618

Answers (2)

Ali Tarhini
Ali Tarhini

Reputation: 5358

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

Upvotes: 0

Botz3000
Botz3000

Reputation: 39600

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.

Upvotes: 6

Related Questions