/// <summary> /// 利用Unity从容器中提取仓储类 /// </summary> public BaseArvOpService() { arvRepository = UnityHelper.Instance.Resolve <IArvRepository>(); lendRepository = UnityHelper.Instance.Resolve <ILendRepository>(); returnRepository = UnityHelper.Instance.Resolve <IReturnRepository>(); outCabRepository = UnityHelper.Instance.Resolve <IOutCabRepository>(); arvBoxRepository = UnityHelper.Instance.Resolve <IArvBoxRepository>(); arvLendReturnRepository = UnityHelper.Instance.Resolve <IArvLendReturnRepository>(); }
} // 出库管理业务 /// <summary> /// 参数形式初始化仓储类 /// </summary> /// <param name="unitContext">上下文</param> /// <param name="arvRepository">档案管理</param> /// <param name="arvBoxRepository">档案盒管理</param> /// <param name="lendRepository">借阅管理</param> /// <param name="returnRepository">归还管理</param> /// <param name="outCabRepository">出库管理</param> public BaseArvOpService(IUnitOfWorkContext unitContext, IArvRepository arvRepository, IArvBoxRepository arvBoxRepository, ILendRepository lendRepository, IReturnRepository returnRepository, IArvLendReturnRepository arvLendReturnRepository, IOutCabRepository outCabRepository) : base(unitContext) { this.arvRepository = arvRepository; this.arvBoxRepository = arvBoxRepository; this.lendRepository = lendRepository; this.returnRepository = returnRepository; this.outCabRepository = outCabRepository; this.arvLendReturnRepository = arvLendReturnRepository; }