// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ControleJogosContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseBrowserLink(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); DbInitializer.Initialize(context); }
public AmigosController(ControleJogosContext context) { _context = context; }
public Listagens(ControleJogosContext context) { this._context = context; }
public JogosController(ControleJogosContext context, IHostingEnvironment environment) { _context = context; _hostingEnvironment = environment; }
public EmprestimosController(ControleJogosContext context) { _context = context; }
public static void Initialize(ControleJogosContext context) { context.Database.EnsureCreated(); }
public HomeController(ControleJogosContext context) { _context = context; }