comparison Agendas/trunk/src/Agendas.Repositories.NHibernate/PonenteRepository.cs @ 143:2dbb15f4510f

Asociar Twitter a Persona existente
author Nelo@Guinea.neluz.int
date Mon, 01 Aug 2011 09:41:29 -0300
parents db4b1e2cae49
children a36a76bd6ec3
comparison
equal deleted inserted replaced
142:62dc9fb3a03e 143:2dbb15f4510f
26 { 26 {
27 return 27 return
28 Session.QueryOver<Cuenta>().Where(c => c.IdentityProvider == identityProvider && c.LogonName == username). 28 Session.QueryOver<Cuenta>().Where(c => c.IdentityProvider == identityProvider && c.LogonName == username).
29 SingleOrDefault(); 29 SingleOrDefault();
30 } 30 }
31
32 public Persona GetByTwitter(string username)
33 {
34 return Session.QueryOver<Persona>().Where(p => p.Twitter == username).SingleOrDefault();
35 }
31 } 36 }
32 } 37 }