annotate Agendas/trunk/src/Agendas.Repositories.NHibernate/PatrocinadorRepository.cs @ 164:93aa103f75ec

Merge
author nelopauselli
date Fri, 05 Aug 2011 21:55:45 -0300
parents 2d1adbaf0373
children 5346c0500594
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 {
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
8 public class PatrocinadorRepository : RepositoryBase<Patrocinador>, IPatrocinadorRepository
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
9 {
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
10 public PatrocinadorRepository(ISessionFactory sessionFactory)
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
11 : base(sessionFactory)
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
12 {
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
13 }
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
14
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
15 public Patrocinador Get(Guid patrocinadorId)
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
16 {
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
17 return Session.Get<Patrocinador>(patrocinadorId);
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
18 }
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
19
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
20 public void Delete(Patrocinador patrocinador)
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
21 {
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
22 Session.Delete(patrocinador);
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
23 }
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
24 }
2d1adbaf0373 CRUD de Patrocinador
nelopauselli
parents:
diff changeset
25 }