public MapIdRepository()
 {
     _context = new ToDoListContext();
 }
 public ItemsController(UserManager <ApplicationUser> userManager, ToDoListContext db)
 {
     _userManager = userManager;
     _db          = db;
 }
示例#3
0
 public ToDoTaskRepos(ToDoListContext context) : base(context)
 {
     _context = context;
 }
示例#4
0
 public EFGenericRepository(ToDoListContext context)
 {
     Guard.WhenArgument(context, "Context").IsNull().Throw();
     this.Context = context;
     this.DbSet   = context.Set <T>();
 }
 public ToDoListController(ILogger <ToDoListController> logger, ToDoListContext context)
 {
     _logger  = logger;
     _context = context;
 }
示例#6
0
 public ToDoItemController(ToDoListContext context)
 {
     _context = context;
 }
 public IndexController(ToDoListContext context)
 {
     _context = context;
 }
示例#8
0
 public EditReminderController(ToDoListContext context)
 {
     _context = context;
 }
示例#9
0
 public CommentRepos(ToDoListContext context) : base(context)
 {
     _context = context;
 }
示例#10
0
 public ClassificationRepository(ToDoListContext context)
 {
     this.db = context;
 }
示例#11
0
 public UserController(ToDoListContext context)
 {
     _context = context;
 }
示例#12
0
 public LabelRepository()
 {
     _db = new ToDoListContext();
 }
示例#13
0
 public ClientManager(ToDoListContext db)
 {
     Database = db;
 }
示例#14
0
 public ItemRepository()
 {
     _context = new ToDoListContext();
 }
示例#15
0
 public RelationshipRepository(ToDoListContext context)
 {
     this.db = context;
 }
示例#16
0
 public ToDoItemRepository(ToDoListContext context) : base(context)
 {
 }
示例#17
0
 public Repository(ToDoListContext dbContext)
 {
     this.dbContext = dbContext;
 }
        private readonly ToDoListContext _db; // db comes from our dependencies - under the hood!
        // db is an instance of our DbContext class

        public ItemsController(ToDoListContext db) // new constuctor for our new field: _db
        {
            _db = db;
        }
 public CategoriesController(ToDoListContext context)
 {
     _context = context;
 }
示例#20
0
 public MySqlDataService(ToDoListContext context) => _context = context;
示例#21
0
 public JointUserRepos(ToDoListContext context) : base(context)
 {
     _context = context;
 }
示例#22
0
 public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ToDoListContext db)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _db            = db;
 }
示例#23
0
 public HomeController(ToDoListContext db)
 {
     _db = db;
 }
 public PatientsController(ToDoListContext db)
 {
     _db = db;
 }
示例#25
0
 public ToDoListController(ToDoListContext context)
 {
     db = context;
 }
示例#26
0
 public ToDoTaskRepository(ToDoListContext context)
 {
     this.db = context;
 }
示例#27
0
 public CategoriesController(ToDoListContext db)
 {
     _db = db;
 }
        //public ItemClient ItemClient = new ItemClient();

        public ItemsController()
        {
            _context = new ToDoListContext();
        }
 public ItemsController(ToDoListContext db)
 {
     _db = db;
 }
示例#30
0
 public AccountController(ToDoListContext context,
                          ILogger <AccountController> logger)
 {
     _context = context;
     _logger  = logger;
 }