What\'s the simplest way to connect and query a database for a set of records in C#?
I guess, you can try entity framework.
using (SchoolDBEntities ctx = new SchoolDBEntities()) { IList courseList = ctx.GetCoursesByStudentId(1).ToList(); //do something with courselist here }