Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.NHibernate/NhHelper.cs @ 147:5a1f7233aa5a
Agregando algunos tests
author | Nelo@Guinea.neluz.int |
---|---|
date | Mon, 01 Aug 2011 17:34:35 -0300 |
parents | 2dbb15f4510f |
children | 5346c0500594 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.NHibernate/NhHelper.cs Mon Aug 01 11:42:50 2011 -0300 +++ b/Agendas/trunk/src/Agendas.NHibernate/NhHelper.cs Mon Aug 01 17:34:35 2011 -0300 @@ -37,6 +37,8 @@ mapper.Customize<Persona>(a => a.Property(p => p.Nombre, m => m.Unique(true))); mapper.Customize<Persona>(a => a.Property(p => p.Twitter, m => m.Unique(true))); + mapper.Customize<Evento>(a => a.Property(p => p.Titulo, m => m.Unique(true))); + mapper.AddPropertyPattern(p => p.DeclaringType == typeof(Evento) && p.Name == "Estado", a => a.Type<EventoStateType>()); var mapping = mapper.CompileMappingFor(typeof(Evento).Assembly.GetTypes());