Пример #1
0
        // 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);
            }
        }
Пример #2
0
 public GenreRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Пример #3
0
 public PriceCategoryRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Пример #4
0
 public CartRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Пример #5
0
 public GameInfoRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Пример #6
0
 public GameLibraryRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Пример #7
0
 public UserRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }