public LinqToSqlDatabaseContext(IActiveSessionManager<IDataContext> activeSessionManager, DataContextProvider dataContextProvider) { if (activeSessionManager == null) throw new ArgumentNullException("activeSessionManager"); if (dataContextProvider == null) throw new ArgumentNullException("dataContextProvider"); _activeSessionManager = activeSessionManager; _dataContextProvider = dataContextProvider; }
public SaveForecastsService(IForecastTypeRepository forecastTypeRepository , IForecastMonthFactory forecastMonthFactory , IUserRepository userRepository , IProjectRepository projectRepository , IForecastMonthRepository forecastMonthRepository , IActiveSessionManager activeSessionManager) { _forecastTypeRepository = forecastTypeRepository; _forecastMonthFactory = forecastMonthFactory; _userRepository = userRepository; _projectRepository = projectRepository; _forecastMonthRepository = forecastMonthRepository; _activeSessionManager = activeSessionManager; }
public UnitOfWork(IActiveSessionManager sessionManager) { this.sessionManager = sessionManager; if (sessionManager.HasActiveSession) { isRootUnitOfWork = false; session = sessionManager.GetActiveSession(); } else { isRootUnitOfWork = true; session = sessionManager.OpenSession(); } }
public CustomerRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
public Repository(IActiveSessionManager activeSessionManager) { _activeSessionManager = activeSessionManager; }
public RetryServiceRunner(Global.TrexAppHost appHost, ActionContext actionContext, IActiveSessionManager sessionManager) : base(appHost, actionContext) { _sessionManager = sessionManager; }
public MembershipService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public DBVersionRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
public OAuthTokenService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public ProjectRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
public ClientRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
public SubscriptionService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public TaskRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
public UnitOfWork(IActiveSessionManager activeSessionManager) { _activeSessionManager = activeSessionManager; }
public UserAttributeService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public StubbedLinqToSqlDatabaseContext(IActiveSessionManager<IDataContext> activeSessionManager, DataContextProvider dataContextProvider) : base(activeSessionManager, dataContextProvider) { }
/// <summary> /// /// </summary> /// <param name="sessionManager"></param> public UnitOfWork(IActiveSessionManager sessionManager) { _session = sessionManager.GetActiveSession(); //this may be an already open session... _session.FlushMode = FlushMode.Auto; //default }
public UnitOfWork(IActiveSessionManager manager) { _manager = manager; }
public TimeEntryTypeRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
// NHibernateDatabaseSession _currentDatabaseSession; public NHibernateDatabaseContext(IActiveSessionManager<ISession> activeSessionManager, ISessionFactory sessionFactory) { _activeSessionManager = activeSessionManager; _sessionFactory = sessionFactory; }
public BannedIpService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public ForecastRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
public OAuthService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider, IWorkContext workContext) : base(activeSessionManager, validationProvider) { _workContext = workContext; }
protected DbServiceBase(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) { _activeSessionManager = activeSessionManager; _validationProvider = validationProvider; }
public PermissionGroupService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public DomainSettingRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }
public SettingService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public GenericRepository(IActiveSessionManager activeSessionManager) { ActiveSessionManager = activeSessionManager; }
public EntityRepository(IActiveSessionManager activeSessionManger) : base(activeSessionManger) { }
public UnitOfWork(ISession session, IActiveSessionManager activeSessionManager) { this.activeSessionManager = activeSessionManager; this.session = session; activeSessionManager.SetActiveSession(session); }
public QueuedMailService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public UnitOfWorkFactory(ISessionFactory sessionFactory,IActiveSessionManager activeSessionManager) { this.sessionFactory = sessionFactory; this.activeSessionManager = activeSessionManager; }
public EmailAccountService(IActiveSessionManager activeSessionManager, ValidationProvider validationProvider) : base(activeSessionManager, validationProvider) { }
public HolidayRepository(IActiveSessionManager activeSessionManager) : base(activeSessionManager) { }