public EntityDataSource(string contextName) { FinancialManagerModel model = new FinancialManagerModel(contextName); CategoryService = new BaseService <CategoryEntity>(model); WalletService = new BaseService <WalletEntity>(model); TransactionService = new BaseService <TransactionEntity>(model); IncomeService = new BaseService <IncomeEntity>(model); PriceService = new BaseService <PriceEntity>(model); RecordService = new BaseService <RecordEntity>(model); TarifService = new BaseService <TarifEntity>(model); }
public BaseService(FinancialManagerModel model) { _model = model; _dbSet = model.Set <T>(); }