public IOutputInvoiceRepository GetOutputInvoiceRepository() { if (outputInvoiceRepository == null) { outputInvoiceRepository = new OutputInvoiceViewRepository(context); } return(outputInvoiceRepository); }
public UnitOfWork(IContoRepository contoRepository, IBusinessPartnerBankAccountRepository businessPartnerBankAccountRepository, IBusinessPartnerLocationRepository businessPartnerLocationRepository, IBusinessPartnerPhoneRepository businessPartnerPhoneRepository, IBusinessPartnerRepository businessPartnerRepository, ICalculationsRepository inputCalculationsRepository, IPriceLevelingRepository priceLevelingRepository, IPricingRepository pricingRepository, ICashierRepository cashierRepository, IClawbackFromBuyerRepository clawbackFromBuyerRepository, IClawbackFromSupplierRepository clawbackFromSupplierRepository, ILoanRepository loanRepository, IWritingOffRepository writingOffRepository, ICompanyBankAccountRepository companyBankAccountRepository, ICompanyPhoneRepository companyPhoneRepository, ICompanyRepository companyRepository, IDeliveryNoteRepository deliveryNoteRepository, IInternalDeliveryNoteRepository internalDeliveryNoteRepository, IInputNoteRepository inputNoteRepository, IPassportRepository passportRepository, IExchangeRateRepository exchangeRateRepository, IAuthenticationRepository authenticationRepository, IUserRepository userRepository, IAccountStatementRepository accountStatementRepository, IBookOfOutputInvoicesRepository bookOfOutputInvoicesRepository, ICreditNoteRepository creditNoteRepository, IOutputInvoiceRepository outputInvoiceRepository, IInputInvoiceRepository inputInvoiceRepository, IOutputProInvoiceRepository outputProInvoiceRepository, ICountryRepository countryRepository, ICityRepository cityRepository, IExpenseLocationRepository expenseLocationRepository, IMunicipalityRepository municipalityRepository, IOrganizationUnitRepository organizationUnitRepository, ISectionRepository sectionRepository, IProductCardRepository productCardRepository, IProductGroupRepository productGroupRepository, IProductSubGroupRepository productSubGroupRepository, IProductRepository productRepository, IProductSubItemRepository productSubItemRepository, IAnimalTypeRepository animalTypeRepository, IAnimalSubTypeRepository animalSubTypeRepository, IUnitOfMeasurementRepository unitOfMeasurementRepository, IPalletRepository palletRepository, IProductTypeRepository productTypeRepository, IProductVatPercentRepository productVatPercentRepository, IKepuBookRepository kepuBookRepository, IBoxRepository boxRepository, IDepotRepository depotRepository, IStockRepository stockRepository, IWarehouseRepository warehouseRepository, IWarehouseTypeRepository warehouseTypeRepository, IWarehousePriceTypeRepository warehousePriceTypeRepository, IManuelWarrantRepository manuelWarrantRepository, IEmployeeRepository employeeRepository, IEmployeeBankAccountRepository employeeBankAccountRepository, IWorkHourRepository workHourRepository, IWorkTypeRepository workTypeRepository, IDeductionTypeRepository deductionTypeRepository, IContributionRepository contributionRepository, IDeductionRepository deductionRepository, IMonthUtilityRepository monthUtilityRepository, IWarrantTypeRepository warrantTypeRepository, IAmortizationGroupRepository amortizationGroupRepository, IFixedAssetRepository fixedAssetRepository, IMigrationLogRepository migrationLogRepository, IFinancialTemplateRepository financialTemplateRepository, IMainFinancialBookRepository mainFinancialBookRepository, IAdvanceOutputInvoiceRepository advanceOutputInvoiceRepository) { this.context = ApplicationDbContext.GetInstance(); this.contoRepository = contoRepository; this.businessPartnerBankAccountRepository = businessPartnerBankAccountRepository; this.businessPartnerLocationRepository = businessPartnerLocationRepository; this.businessPartnerPhoneRepository = businessPartnerPhoneRepository; this.businessPartnerRepository = businessPartnerRepository; this.inputCalculationsRepository = inputCalculationsRepository; this.priceLevelingRepository = priceLevelingRepository; this.pricingRepository = pricingRepository; this.cashierRepository = cashierRepository; this.clawbackFromBuyerRepository = clawbackFromBuyerRepository; this.clawbackFromSupplierRepository = clawbackFromSupplierRepository; this.loanRepository = loanRepository; this.writingOffRepository = writingOffRepository; this.companyBankAccountRepository = companyBankAccountRepository; this.companyPhoneRepository = companyPhoneRepository; this.companyRepository = companyRepository; this.deliveryNoteRepository = deliveryNoteRepository; this.internalDeliveryNoteRepository = internalDeliveryNoteRepository; this.inputNoteRepository = inputNoteRepository; this.passportRepository = passportRepository; this.exchangeRateRepository = exchangeRateRepository; this.authenticationRepository = authenticationRepository; this.userRepository = userRepository; this.accountStatementRepository = accountStatementRepository; this.bookOfOutputInvoicesRepository = bookOfOutputInvoicesRepository; this.creditNoteRepository = creditNoteRepository; this.outputInvoiceRepository = outputInvoiceRepository; this.outputProInvoiceRepository = outputProInvoiceRepository; this.inputInvoiceRepository = inputInvoiceRepository; this.advanceOutputInvoiceRepository = advanceOutputInvoiceRepository; this.countryRepository = countryRepository; this.cityRepository = cityRepository; this.expenseLocationRepository = expenseLocationRepository; this.municipalityRepository = municipalityRepository; this.organizationUnitRepository = organizationUnitRepository; this.sectionRepository = sectionRepository; this.productCardRepository = productCardRepository; this.productGroupRepository = productGroupRepository; this.productSubGroupRepository = productSubGroupRepository; this.productRepository = productRepository; this.productSubItemRepository = productSubItemRepository; this.animalTypeRepository = animalTypeRepository; this.animalSubTypeRepository = animalSubTypeRepository; this.unitOfMeasurementRepository = unitOfMeasurementRepository; this.palletRepository = palletRepository; this.productTypeRepository = productTypeRepository; this.productVatPercentRepository = productVatPercentRepository; this.kepuBookRepository = kepuBookRepository; this.boxRepository = boxRepository; this.depotRepository = depotRepository; this.stockRepository = stockRepository; this.warehouseRepository = warehouseRepository; this.warehouseTypeRepository = warehouseTypeRepository; this.warehousePriceTypeRepository = warehousePriceTypeRepository; this.manuelWarrantRepository = manuelWarrantRepository; this.employeeRepository = employeeRepository; this.employeeBankAccountRepository = employeeBankAccountRepository; this.deductionTypeRepository = deductionTypeRepository; this.workHourRepository = workHourRepository; this.workTypeRepository = workTypeRepository; this.contributionRepository = contributionRepository; this.deductionRepository = deductionRepository; this.monthUtilityRepository = monthUtilityRepository; this.warrantTypeRepository = warrantTypeRepository; this.amortizationGroupRepository = amortizationGroupRepository; this.fixedAssetRepository = fixedAssetRepository; this.migrationLogRepository = migrationLogRepository; this.financialTemplateRepository = financialTemplateRepository; this.mainFinancialBookRepository = mainFinancialBookRepository; }