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();
 }
示例#2
0
        //private ArtistRepository _artistRepository;

        public UnitOfWork(TodoDbContext context)
        {
            this._context = context;
        }
示例#3
0
 public TodoRepository(TodoDbContext context)
 {
     _context = context;
 }