I need to convert linq query result to list. I tried the following code:
var qry = from a in obj.tbCourses
No need to do so much works..
var query = from c in obj.tbCourses where ... select c;
Then you can use:
List list_course= query.ToList();
It works fine for me.