I have a stored procedure that returns a dynamic query, e,g if i pass some value to its id parameter it return me a dynamic query like
Select * from someTable tbl where tbl.Id=51
then i execute this query using ExecuteStoreQuery like
string query = container.CreateQuery<string>(
"SELECT VALUE DB.Store.GetQuery(@ID) FROM {1}",
new System.Data.Objects.ObjectParameter("ID", 51)
).First();
object lists = container.ExecuteStoreQuery<object>(query);
the problem is container.ExecuteStoreQuery<object>(query); returns multiple rows which i want to get into a list, how can i do that