view Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs @ 69:8becac0977d7

Ajustando el merge
author nelopauselli
date Thu, 19 May 2011 01:32:29 -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)));
		}
	}
}