Beispiel #1
0
        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);
        }
Beispiel #2
0
 public BaseService(FinancialManagerModel model)
 {
     _model = model;
     _dbSet = model.Set <T>();
 }