// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, FamilyTaskContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); context.Database.EnsureCreated(); //context.Database.Migrate(); } app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Family Task API"); }); app.UseCors(options => { options.AllowAnyOrigin(); options.AllowAnyHeader(); options.AllowAnyMethod(); }); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public MemberRepository(FamilyTaskContext context) : base(context) { }
public TaskRepository(FamilyTaskContext context) : base(context) { _db = context; }
public TasksRepository(FamilyTaskContext context) : base(context) { }