view Agendas/trunk/src/Agendas.NHibernate/EventoStateType.cs @ 248:da9c295e9fa1

Nro de versión en el footer
author nelopauselli
date Fri, 07 Oct 2011 13:02:13 -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)}; }
		}
	}
}