Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.NHibernate/NhHelper.cs @ 94:db4b1e2cae49
Cambio del nombre de la clase Ponente a Persona
Se agrega la clase Cuenta para identificar cada una de las cuentas con que se puede autenticar una persona
Alta Automatica de cuentas de twitter creando la persona
author | Nelo@Kenia.neluz.int |
---|---|
date | Sat, 04 Jun 2011 12:11:17 -0300 |
parents | c2d98fd6593f |
children | 90ce239cfa6d |
comparison
equal
deleted
inserted
replaced
93:65f0b3d70c18 | 94:db4b1e2cae49 |
---|---|
16 public static Configuration GetConfiguration() | 16 public static Configuration GetConfiguration() |
17 { | 17 { |
18 if (_cfg == null) | 18 if (_cfg == null) |
19 { | 19 { |
20 var orm = new ObjectRelationalMapper(); | 20 var orm = new ObjectRelationalMapper(); |
21 orm.TablePerClass<Persona>(); | |
21 orm.TablePerClass<Evento>(); | 22 orm.TablePerClass<Evento>(); |
22 orm.TablePerClass<Track>(); | 23 orm.TablePerClass<Track>(); |
23 orm.TablePerClass<Ponente>(); | 24 orm.TablePerClass<Cuenta>(); |
24 | 25 |
25 orm.Cascade<Evento, Ponente>(Cascade.None); | 26 orm.Cascade<Evento, Persona>(Cascade.None); |
26 orm.Cascade<Ponente, Evento>(Cascade.None); | 27 orm.Cascade<Persona, Evento>(Cascade.None); |
28 | |
29 orm.Cascade<Persona, Cuenta>(Cascade.All); | |
27 | 30 |
28 var mapper = new Mapper(orm); | 31 var mapper = new Mapper(orm); |
29 | 32 |
30 var mapping = mapper.CompileMappingFor(typeof(Evento).Assembly.GetTypes()); | 33 var mapping = mapper.CompileMappingFor(typeof(Evento).Assembly.GetTypes()); |
31 | 34 |