Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Repositories.NHibernate/PonenteRepository.cs @ 89:24e9488ac152
mapeo de property UrlInvitacion entre viewmodel y entity
author | jorge.rowies |
---|---|
date | Tue, 31 May 2011 16:31:24 -0300 |
parents | 963b71ea6028 |
children | db4b1e2cae49 |
line wrap: on
line source
using System.Collections.Generic; using AltNetHispano.Agendas.Domain; using AltNetHispano.Agendas.Domain.Repositories; using NHibernate; namespace AltNetHispano.Agendas.Repositories.NHibernate { public class PonenteRepository : RepositoryBase<Ponente>, IPonenteRepository { public PonenteRepository(ISessionFactory sessionFactory) : base(sessionFactory) { } public IList<Ponente> GetAll() { return Session.QueryOver<Ponente>().List(); } public Ponente GetByNombre(string ponenteNombre) { return Session.QueryOver<Ponente>().Where(p => p.Nombre == ponenteNombre).SingleOrDefault(); } } }