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) { }
public EntityRepository(WimmDbContext wimmDbContext) { _wimmDbContext = wimmDbContext; }
public ExpensesRepository(WimmDbContext wimmDbContext) : base(wimmDbContext) { }