Exemple #1
0
 public ContactRepository(DbContext context,
                          ISharedCategoryRepository <ContactCategory> categoryRepository,
                          IAccountRepository accountRepository)
     : base(context)
 {
     _categoryRepository = categoryRepository;
     _accountRepository  = accountRepository;
 }
 public ExpenseRepository(DbContext context,
                          ISharedCategoryRepository <Category> categoryRepository,
                          ISharedCategoryRepository <SubCategory> subCategoryRepository,
                          IAccountRepository accountRepository)
     : base(context)
 {
     _categoryRepository    = categoryRepository;
     _subCategoryRepository = subCategoryRepository;
     _accountRepository     = accountRepository;
 }
 public SecurityRepository(DbContext context, ISharedCategoryRepository <SecurityCategory> categoryRepository, IAccountRepository accountRepository)
     : base(context)
 {
     _categoryRepository = categoryRepository;
     _accountRepository  = accountRepository;
 }
 public ExpensesController(ExpenseRepository expenseRepository, ISharedCategoryRepository <SubCategory> subCategoryRepository)
 {
     _expenseRepository     = expenseRepository;
     _subCategoryRepository = subCategoryRepository;
 }