예제 #1
0
 public void Configure(IApplicationBuilder app, IHostingEnvironment env,
                       WimmDbContext wimmDbContext)
 {
     if (env.IsDevelopment())
     {
         app.UseDeveloperExceptionPage();
     }
     else
     {
         app.UseHsts();
     }
     app.UseCors();
     app.UseHttpsRedirection();
     app.UseSwagger();
     app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "Expenses API"));
     app.UseMvc();
     wimmDbContext.Database.EnsureCreated();
 }
 public CategoriesRepository(WimmDbContext wimmDbContext) : base(wimmDbContext)
 {
 }
예제 #3
0
 public EntityRepository(WimmDbContext wimmDbContext)
 {
     _wimmDbContext = wimmDbContext;
 }
예제 #4
0
 public ExpensesRepository(WimmDbContext wimmDbContext) : base(wimmDbContext)
 {
 }