// 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(); }
public UserRepository(SprotifyDbContext context) { _context = context; }
public BandRepository(SprotifyDbContext context) { _context = context; }
public PlaylistRepository(SprotifyDbContext context) { _context = context; }
public AlbumRepository(SprotifyDbContext context) { _context = context; }
public SongRepository(SprotifyDbContext context) { _context = context; }
public SubscriptionRepository(SprotifyDbContext context) { _context = context; }