Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs @ 73:76567a0d1e44
Eliminando algunas propiedades que no se estaban usando
author | nelopauselli |
---|---|
date | Mon, 23 May 2011 19:54:05 -0300 |
parents | c8099df941bd |
children | 26d0513a8410 |
line wrap: on
line source
using Agendas.NHibernate; using AltNetHispano.Agendas.Domain; using AltNetHispano.Agendas.Repositories.NHibernate; using NHibernate; namespace AltNetHispano.Agendas.Factories { public static class AgendaFactory { private static Agenda _agenda; public static Agenda GetAgenda() { ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); return _agenda ?? (_agenda = new Agenda(null, null, new EventoRepository(sessionFactory), new PonenteRepository(sessionFactory))); } } }