Пример #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, SprotifyDbContext context)
        {
            loggerFactory.AddConsole(LogLevel.Debug);
            loggerFactory.AddDebug();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();

                context.Database.EnsureCreated();
                context.Seed().Wait();
            }

            app.UseAuthentication();

            app.UseMvc();
        }
Пример #2
0
 public UserRepository(SprotifyDbContext context)
 {
     _context = context;
 }
Пример #3
0
 public BandRepository(SprotifyDbContext context)
 {
     _context = context;
 }
 public PlaylistRepository(SprotifyDbContext context)
 {
     _context = context;
 }
Пример #5
0
 public AlbumRepository(SprotifyDbContext context)
 {
     _context = context;
 }
Пример #6
0
 public SongRepository(SprotifyDbContext context)
 {
     _context = context;
 }
Пример #7
0
 public SubscriptionRepository(SprotifyDbContext context)
 {
     _context = context;
 }