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