// 可以通过构造函数传入具体需要适配的被适配类对象 public Adapter(CrmDBContext crmDbContext, IMapper mapper, int expenseType, string period, string expenseCode = "") { _crmDbContext = crmDbContext; _mapper = mapper; _expenseType = expenseType; _period = period; _expenseCode = expenseCode; }
public ReimbursementAndBorrowingFactory(CrmDBContext crmDbContext, IMapper mapper, string period, string expenseCode = "") { _crmDbContext = crmDbContext; _mapper = mapper; _period = period; _expenseCode = expenseCode; _expenseHistoryRepository = new DapperRepositoryBase <ExpenseLineConfirmHistory, CrmDBContext>(_crmDbContext); }
public FixedAssetsDepreciationFactory(CrmDBContext crmDbContext, IMapper mapper, string period, string expenseCode = "") { _crmDbContext = crmDbContext; _mapper = mapper; _period = period; _expenseCode = expenseCode; _historyRepository = new DapperRepositoryBase <FixedAssetsDepreciationHistory, CrmDBContext>(_crmDbContext); }
public ExpenseService(IDapperRepositoryBase <ExpenseAccount, CrmDBContext> expenseAccountRepository , IDapperRepositoryBase <ExpenseLineConfirmHistory, CrmDBContext> expenseHistoryRepository , IMapper mapper , CrmDBContext crmDbContext , IUnitOfWorkFactory <CrmDBContext> uowCrm , IPurchaseOrderService purchaseOrderService , IDapperRepositoryBase <BusinessRedirectSplitInfoVersion, CrmDBContext> businessRedirectSplitRepository , IDapperRepositoryBase <DepartMentVersion, CrmDBContext> departRepository , IDapperRepositoryBase <v_AchievementBusinessDepartMappingVersion, CrmDBContext> achMappingRepository , IDapperRepositoryBase <FixedAssetsDepreciationHistory, CrmDBContext> fixedAssetsDepreciationRepository ) { _expenseAccountRepository = expenseAccountRepository; _expenseHistoryRepository = expenseHistoryRepository; _mapper = mapper; _crmDbContext = crmDbContext; _uowCrm = uowCrm; _businessRedirectSplitRepository = businessRedirectSplitRepository; _purchaseOrderService = purchaseOrderService; _departRepository = departRepository; _achMappingRepository = achMappingRepository; _fixedAssetsDepreciationRepository = fixedAssetsDepreciationRepository; }
public TedarikciIletisimDTORepository() { _db = new CrmDBContext(); }
public MusteriIletisimDTORepository() { _db = new CrmDBContext(); }