private static void AddNewRecord()
 {
     //  向AutoLot数据库的Inventory表添加一条记录
     using (AutoLotEntities context = new AutoLotEntities())
     {
         try
         {
             //  对新的记录进行硬编码,仅供测试
             context.AddToCars(new Car()
             {
                 CarID = 2222,
                 Make  = "Yugo",
                 Color = "Brown"
             });
             context.SaveChanges();
         }
         catch (Exception ex)
         {
             Console.WriteLine(ex.InnerException.Message);
         }
     }
 }