Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.NHibernate/EventoStateType.cs @ 222:68b09c30b0d2
Separando los test de persistencia en un proyecto aparte
author | nelopauselli |
---|---|
date | Mon, 19 Sep 2011 18:18:17 -0300 |
parents | 3639803112c6 |
children |
rev | line source |
---|---|
222
68b09c30b0d2
Separando los test de persistencia en un proyecto aparte
nelopauselli
parents:
140
diff
changeset
|
1 using AltNetHispano.Agendas.Domain; |
68b09c30b0d2
Separando los test de persistencia en un proyecto aparte
nelopauselli
parents:
140
diff
changeset
|
2 using AltNetHispano.Agendas.Domain.Repositories; |
140 | 3 using NHibernate.SqlTypes; |
4 | |
5 namespace Agendas.NHibernate | |
6 { | |
7 public class EventoStateType : GenericWellKnownInstanceType<EventoState, string> | |
8 { | |
9 public EventoStateType() | |
222
68b09c30b0d2
Separando los test de persistencia en un proyecto aparte
nelopauselli
parents:
140
diff
changeset
|
10 : base(EventoStateRepository.All, (state, id) => state.Descripcion == id, state => state.Descripcion) |
140 | 11 { |
12 } | |
13 | |
14 public override SqlType[] SqlTypes | |
15 { | |
16 get { return new[] {SqlTypeFactory.GetString(25)}; } | |
17 } | |
18 } | |
19 } |