示例#1
0
 private static void GetRoutes()
 {
     using (var context = new D3Entities())
     {
         var routes = context.Routes.ToList();
         foreach (var rr in routes)
         {
             Console.WriteLine(rr.RouteName);
         }
     }
 }
示例#2
0
 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));
         }
     }
 }