I need to convert linq query result to list. I tried the following code:
var qry = from a in obj.tbCourses
List = (from c in obj.tbCourses select new course(c)).toList();
You can convert the entity object to a list directly on the call. There are methods to converting it to different data struct (list, array, dictionary, lookup, or string)