view Agendas/trunk/src/Agendas.NHibernate/EventoStateType.cs @ 275:bf993f99cee3

Ticket #123: Patrocinadores de las vans.
author juanjose.montesdeocaarbos
date Wed, 14 Dec 2011 08:15:44 -0300
parents 68b09c30b0d2
children
line wrap: on
line source

using AltNetHispano.Agendas.Domain;
using AltNetHispano.Agendas.Domain.Repositories;
using NHibernate.SqlTypes;

namespace Agendas.NHibernate
{
	public class EventoStateType : GenericWellKnownInstanceType<EventoState, string> 
	{
		public EventoStateType()
			: base(EventoStateRepository.All, (state, id) => state.Descripcion == id, state => state.Descripcion)
		{
		}

		public override SqlType[] SqlTypes
		{
			get { return new[] {SqlTypeFactory.GetString(25)}; }
		}
	}
}