示例#1
0
 public TagBusiness(IUnitOfWork _unitOfWork)
 {
     tagRepository        = new TagRepository(_unitOfWork);
     accountTagRepository = new AccountTagRepository(_unitOfWork);
     contactTagRepository = new ContactTagRepository(_unitOfWork);
     leadTagRepository    = new LeadTagRepository(_unitOfWork);
 }
 public AccountBusiness(IUnitOfWork _unitOfWork)
 {
     unitOfWork               = _unitOfWork;
     accountRepository        = new AccountRespository(unitOfWork);
     accountTypeRepository    = new AccountTypeRespository(unitOfWork);
     tagRepository            = new TagRepository(unitOfWork);
     accountTagRepository     = new AccountTagRepository(unitOfWork);
     taskItemRepository       = new TaskItemRepository(unitOfWork);
     contactRepository        = new ContactRepository(unitOfWork);
     fileAttachmentRepository = new FileAttachmentRepository(unitOfWork);
     salesOrderRepository     = new SalesOrderRepository(unitOfWork);
     accountCaseRepository    = new AccountCaseRepository(unitOfWork);
 }