void Application_Start(object sender, EventArgs e) { // Code that runs on application startup RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); TodoDbContext context = new TodoDbContext(); context.Categories.Count(); }
//private ArtistRepository _artistRepository; public UnitOfWork(TodoDbContext context) { this._context = context; }
public TodoRepository(TodoDbContext context) { _context = context; }