public PersonFacade(ISessionFactoryHelper sessionFactoryHelper, IPersonRepository personRepository, ICommunicationRepository communicationRepository) { _sessionFactoryHelper = sessionFactoryHelper; _sessionFactory = _sessionFactoryHelper.CreateSessionFactory(); _personRepository = personRepository; _communicationRepository = communicationRepository; }
public SessionFactoryHolder(ISessionFactoryHelper sessionFactoryHelper) { if (SessionFactory == null) { SessionFactory = sessionFactoryHelper.CreateSessionFactory(); } }
public UserFacade(ISessionFactoryHelper sessionFactoryHelper, IUserRepository userRepository) { _sessionFactoryHelper = sessionFactoryHelper; _sessionFactory = _sessionFactoryHelper.CreateSessionFactory(); _userRepository = userRepository; }
public Repository(ISessionFactoryHelper facoryHelper) { helper = facoryHelper; }