private static void GetRoutes() { using (var context = new D3Entities()) { var routes = context.Routes.ToList(); foreach (var rr in routes) { Console.WriteLine(rr.RouteName); } } }
private static void GetDrivers() { using (var context = new D3Entities()) { var drivers = context.Drivers.ToList(); foreach (var dd in drivers) { Console.WriteLine(String.Format("{0} {1}", dd.FirstName, dd.LastName)); } } }