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