// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseDeveloperExceptionPage(); app.UseStatusCodePages(); app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); using (IServiceScope scope = app.ApplicationServices.CreateScope()) { RedSwanStoreDBContent dbContent = scope.ServiceProvider.GetRequiredService <RedSwanStoreDBContent>(); DBInitializer.Initialize(dbContent); } }
public GenreRepo(RedSwanStoreDBContent dbContent) { this.dbContent = dbContent; }
public PriceCategoryRepo(RedSwanStoreDBContent dbContent) { this.dbContent = dbContent; }
public CartRepo(RedSwanStoreDBContent dbContent) { this.dbContent = dbContent; }
public GameInfoRepo(RedSwanStoreDBContent dbContent) { this.dbContent = dbContent; }
public GameLibraryRepo(RedSwanStoreDBContent dbContent) { this.dbContent = dbContent; }
public UserRepo(RedSwanStoreDBContent dbContent) { this.dbContent = dbContent; }