Skip to content

Instantly share code, notes, and snippets.

@shengoo
Last active August 29, 2015 14:03
Show Gist options
  • Save shengoo/219a97fd1f9650978f65 to your computer and use it in GitHub Desktop.
Save shengoo/219a97fd1f9650978f65 to your computer and use it in GitHub Desktop.
linqs
var query = from t in db.Table
where idList.Contains(t.Id)
select t;
var query = db.Table.Where(c => idList.Contains(c.Id));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment