예제 #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, MakuniDbContext makuniDbContext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            app.UseDefaultFiles();
            app.UseStaticFiles();
            app.UseHttpsRedirection();
            app.UseAuthentication();
            //vehiclesProjectDbContext.Database.EnsureCreated();
            makuniDbContext.Database.EnsureCreated();
            app.UseMvc();
        }
예제 #2
0
 public TuotteetController(MakuniDbContext makuniDbContext)
 {
     _makuniDbContext = makuniDbContext;
 }
예제 #3
0
 public ArvostelutController(MakuniDbContext makuniDbContext)
 {
     _makuniDbContext = makuniDbContext;
 }