Skip to content

Instantly share code, notes, and snippets.

@baio
Created May 15, 2012 12:13
Show Gist options
  • Save baio/2701281 to your computer and use it in GitHub Desktop.
Save baio/2701281 to your computer and use it in GitHub Desktop.
var tagFilter = ((IEnumerable<dynamic>)fr["$and"]).FirstOrDefault(p => p.tags != null);
if (tagFilter != null)
{
var tags = ((IEnumerable<int>)tagFilter.tags["$in"]).Select(p=>(int)p);
q = q.FilterByTags(tags);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment