view Agendas/trunk/src/Agendas.NHibernate/EventoStateType.cs @ 259:e6c041d8e1bf

Ticket #193.1: Al guardar (nuevo/modificar) una persona, que la cuenta de twitter no comience con @
author juanjose.montesdeocaarbos
date Thu, 20 Oct 2011 08:16:55 -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)}; }
		}
	}
}