// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, SkillzMatrixDbContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); //Seed data context.SeedData(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public SkillzRepository(SkillzMatrixDbContext context) : base(context) { _context = context; }
public Repository(SkillzMatrixDbContext context) { _context = context; }