// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) { app.UseIISPlatformHandler(); app.UseStaticFiles(); app.UseIdentity(); loggerFactory.AddDebug(LogLevel.Warning); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Admin}/{action=Index}/{id?}"); }); using (var ctx = new JuveDbContext()) { ctx.EnsureSeedData(); } }
public BaseRepository() { _context = new JuveDbContext(); }