Skip to content

Instantly share code, notes, and snippets.

@rippo
Created September 18, 2012 20:09
Show Gist options
  • Save rippo/3745539 to your computer and use it in GitHub Desktop.
Save rippo/3745539 to your computer and use it in GitHub Desktop.
Simple Data get by multiple columns
var db = Database.Open();
IEnumerable<Login> logins = db.Logins.FindAllByEmailAndPassword(model.Email, model.Password).ToList<Login>();
if (logins.Count() == 1)
{
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment