通过datacontext直接‘.’一下获得所有数据:using (var db = new DBContext()){ var employees = db.Employees.ToList(); ......}