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); }
public PessoasController(PIMContext context) { _context = context; }
public MainController(PIMContext context) { this.context = context; }