Пример #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            System.Data.Entity.Database.SetInitializer(new ProductInitializer());

            PIMContext db = new PIMContext();

            db.Database.Initialize(true);
        }
Пример #2
0
 public PessoasController(PIMContext context)
 {
     _context = context;
 }
Пример #3
0
 public MainController(PIMContext context)
 {
     this.context = context;
 }