Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs @ 88:05f5f7307957
agregado de Agendas.Web\packages.config en install packages.bat
author | jorge.rowies |
---|---|
date | Tue, 31 May 2011 16:12:58 -0300 |
parents | 26d0513a8410 |
children | db4b1e2cae49 |
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, new EventoRepository(sessionFactory), new PonenteRepository(sessionFactory))); } } }