Skip to content

Instantly share code, notes, and snippets.

@mattwarren
Created April 12, 2012 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwarren/8016f3c8f9a6d8cd485f to your computer and use it in GitHub Desktop.
Save mattwarren/8016f3c8f9a6d8cd485f to your computer and use it in GitHub Desktop.
var q = session.Query<Question>();
foreach(var tag in tags)
{
var currentTag = tag;
q = q.Where(x=>x.Tags.Any(xTag=>xTag == currentTag));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment