private bedrijf_modelDataContext dc = new bedrijf_modelDataContext(); public IList<Afdeling> selectAll() { var result = from a in dc.Afdelings select a; return result.ToList(); } This code is supposed to return all the records from the Afdeling-table. This code works, but it comes from my teacher, and there is no explanation whatsoever as to how this works. Can somebody explain what this exactly does? Thank you.