public void InitialProperties(Guid?processID, Guid?threadID, Guid?applicationPageId, Domain.IUnitOfWork unitOfWork, List <Domain.QueryModel> baseQueryModel, Guid?currentUserID, string currentUserName, Domain.FormModel formModel, string apiSessionId, Domain.CodeBaseSharedModel codeBaseShared) { this.formModel = formModel; this.EngineSharedModel = applicationPageId.HasValue ? new Domain.EngineSharedModel(applicationPageId.Value, baseQueryModel, currentUserName, apiSessionId) : new Domain.EngineSharedModel(threadID, processID, baseQueryModel, currentUserName, apiSessionId); this.BaseQueryModel = baseQueryModel; this.UnitOfWork = unitOfWork ?? new BusinessLogic.UnitOfWork(); this.ProcessID = processID; this.ThreadID = threadID; this.ApplicationPageId = applicationPageId; this.CurrentUserID = currentUserID; this.CurrentUserName = currentUserName; if (applicationPageId.HasValue) { this.DataManageHelperService = new BusinessLogic.DataManageEngine(this.EngineSharedModel, this.UnitOfWork); } else { this.DataManageHelperService = new BusinessLogic.DataManageEngine(new Domain.EngineSharedModel(this.ThreadID, this.ProcessID, baseQueryModel, currentUserName, apiSessionId), this.UnitOfWork); } this.CodeBaseShared = codeBaseShared ?? new Domain.CodeBaseSharedModel(); }
public void InitialProperties(Domain.IUnitOfWork unitOfWork) { this.UnitOfWork = unitOfWork ?? new BusinessLogic.UnitOfWork(); }