diff 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
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Repositories.NHibernate/PonenteRepository.cs	Mon Aug 01 00:28:04 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Repositories.NHibernate/PonenteRepository.cs	Mon Aug 01 09:41:29 2011 -0300
@@ -28,5 +28,10 @@
 				Session.QueryOver<Cuenta>().Where(c => c.IdentityProvider == identityProvider && c.LogonName == username).
 					SingleOrDefault();
 		}
+
+	    public Persona GetByTwitter(string username)
+	    {
+	        return Session.QueryOver<Persona>().Where(p => p.Twitter == username).SingleOrDefault();
+	    }
 	}
 }
\ No newline at end of file