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