// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, BetterMeContext dbContext) { if (_env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseCors("CorsPolicy"); app.UseAuthentication(); dbContext.Database.Migrate(); dbContext.Database.EnsureCreated(); app.UseMiddleware <RegistrationMiddleware>(); app.UseMvc(); }
public ProgressRepository(BetterMeContext context) { _context = context; }
public GoalRepository(BetterMeContext context) { _context = context; }
public UserRepository(BetterMeContext context) { _context = context; }
public AchievementRepository(BetterMeContext context) { _context = context; }
public AssignmentRepository(BetterMeContext context) { _context = context; }