Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public GenreRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Exemplo n.º 3
0
 public PriceCategoryRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Exemplo n.º 4
0
 public CartRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Exemplo n.º 5
0
 public GameInfoRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Exemplo n.º 6
0
 public GameLibraryRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }
Exemplo n.º 7
0
 public UserRepo(RedSwanStoreDBContent dbContent)
 {
     this.dbContent = dbContent;
 }