I need to convert linq query result to list. I tried the following code:
var qry = from a in obj.tbCourses
What you can do is select everything into a new instance of Course, and afterwards convert them to a List.
var qry = from a in obj.tbCourses select new Course() { Course.Property = a.Property ... }; qry.toList();