public SongRepository(SongBookContext context) : base(context) { }
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, SongBookContext context) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); app.UseDefaultFiles(); app.UseStaticFiles(); app.UseMvc(); DbInitializer.Initialize(context); }
public Repository(SongBookContext context) { _context = context; }