annotate Agendas/trunk/src/Agendas.Repositories.NHibernate/PatrocinadorRepository.cs @ 274:72a96459f910

Ticket #123: Patrocinadores de las vans.
author juanjose.montesdeocaarbos
date Wed, 30 Nov 2011 08:56:01 -0300
parents 5346c0500594
children bf993f99cee3
rev   line source
137
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
1 using System;
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
2 using AltNetHispano.Agendas.Domain;
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
3 using AltNetHispano.Agendas.Domain.Repositories;
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
4 using NHibernate;
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
5
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
6 namespace AltNetHispano.Agendas.Repositories.NHibernate
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
7 {
274
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
8 public class PatrocinadorRepository : RepositoryBase<Patrocinador>, IPatrocinadorRepository
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
9 {
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
10 public PatrocinadorRepository(ISessionFactory sessionFactory)
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
11 : base(sessionFactory)
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
12 {
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
13 }
137
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
14
274
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
15 public Patrocinador Get(Guid patrocinadorId)
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
16 {
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
17 return Session.Get<Patrocinador>(patrocinadorId);
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
18 }
137
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
19
274
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
20 public void Delete(Patrocinador patrocinador)
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
21 {
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
22 Session.Delete(patrocinador);
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
23 }
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 200
diff changeset
24 }
137
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
25 }