예제 #1
0
        public ActionResult About()
        {
            var ctx = new CarDealer.Data.CarDealerContext();

            ViewBag.Message = "Your application description page." + ctx.Cars.Count();
            return(View());
        }
예제 #2
0
 protected override void Seed(CarDealer.Data.CarDealerContext context)
 {
     //    context.People.AddOrUpdate(
     //      p => p.FullName,
     //      new Person { FullName = "Andrew Peters" },
     //      new Person { FullName = "Brice Lambson" },
     //      new Person { FullName = "Rowan Miller" }
     //    );
     //
 }