I want to build an IQueryable query from a string (it would come from a table). The reason I want the IQueryable is I want to use OrderBy, Take and Skip to do paging. I'm using Entity Framework with DBContext so I looked at Entity SQL but it looks like its restricting the query to a class.
What I want to do is:
string sql = GetQueryFromDatabase();
IQueryable q = PerformMagicToMakeStringIQueryable(sql);
q = q.OrderBy(somefield).Skip(5).Take(10);
From there I'm good, I know how to find out what fields are in the query and do what I need.
Ideas?
thanks,
john