// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, EpicenterDbContext dbContext) { //if (env.IsDevelopment()) //{ app.UseDeveloperExceptionPage(); app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Epicenter API"); c.RoutePrefix = string.Empty; }); //} dbContext.Database.EnsureCreated(); app.UseHttpsRedirection(); app.UseCors(AllowAllCorsPolicy); app.UseAuthentication(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public PersonRepository(EpicenterDbContext context) { _dbContext = context; }
public LearningDayRepository(EpicenterDbContext dbContext) : base(dbContext) { }
public EmployeeRepository(EpicenterDbContext dbContext) : base(dbContext) { }
public InvitationRepository(EpicenterDbContext dbContext) : base(dbContext) { }
public LogRepository(EpicenterDbContext dbContext) : base(dbContext) { }
public Repository(EpicenterDbContext dbContext) { DbContext = dbContext; }
public TimestampRepository(EpicenterDbContext context) { _dbContext = context; }
public PlateRepository(EpicenterDbContext context) { _dbContext = context; }