예제 #1
0
        // 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();
            }
        }
예제 #2
0
파일: Startup.cs 프로젝트: yvaravko/JuveV
        // 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();
            }
        }
예제 #3
0
 public BaseRepository()
 {
     _context = new JuveDbContext();
 }