comparison Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs @ 138:62791999ad01

Agregando relaciĆ³n entre Evento y Patrocinador
author nelopauselli
date Thu, 28 Jul 2011 10:13:28 -0300
parents a456eb519e23
children 734d3f0853bf
comparison
equal deleted inserted replaced
137:2d1adbaf0373 138:62791999ad01
17 { 17 {
18 ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); 18 ISessionFactory sessionFactory = NhHelper.GetSessionFactory();
19 return _agenda ?? 19 return _agenda ??
20 (_agenda = 20 (_agenda =
21 new Agenda(new TwitterPublicador(), new EventoRepository(sessionFactory), 21 new Agenda(new TwitterPublicador(), new EventoRepository(sessionFactory),
22 new PersonaRepository(sessionFactory))); 22 new PersonaRepository(sessionFactory), new PatrocinadorRepository(sessionFactory)));
23 } 23 }
24 24
25 public static IPersonaRepository GetPersonaRepository() 25 public static IPersonaRepository GetPersonaRepository()
26 { 26 {
27 ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); 27 ISessionFactory sessionFactory = NhHelper.GetSessionFactory();