{"action":"created","issue":{"url":"https://api.github.com/repos/jcachat/EntityFramework.DynamicFilters/issues/7","labels_url":"https://api.github.com/repos/jcachat/EntityFramework.DynamicFilters/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/jcachat/EntityFramework.DynamicFilters/issues/7/comments","events_url":"https://api.github.com/repos/jcachat/EntityFramework.DynamicFilters/issues/7/events","html_url":"https://github.com/jcachat/EntityFramework.DynamicFilters/issues/7","id":51588271,"number":7,"title":"New Feature - Add Linq/Lambda support","user":{"login":"adrianotrentim","id":10145110,"avatar_url":"https://avatars.githubusercontent.com/u/10145110?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianotrentim","html_url":"https://github.com/adrianotrentim","followers_url":"https://api.github.com/users/adrianotrentim/followers","following_url":"https://api.github.com/users/adrianotrentim/following{/other_user}","gists_url":"https://api.github.com/users/adrianotrentim/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianotrentim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianotrentim/subscriptions","organizations_url":"https://api.github.com/users/adrianotrentim/orgs","repos_url":"https://api.github.com/users/adrianotrentim/repos","events_url":"https://api.github.com/users/adrianotrentim/events{/privacy}","received_events_url":"https://api.github.com/users/adrianotrentim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-10T17:44:26Z","updated_at":"2015-01-18T18:19:56Z","closed_at":null,"body":"Hello friend,\r\nYour article is sensational.\r\nBut, I have a need here, and could not identify how can I do.\r\nHere's an example:\r\nmodelBuilder.Filter (\"MyEntity\" (MyEntity p) =>              {                  var myArray = new [] {1,2,5,8,20,30};\r\n                 return myArray.Contains (p.MyEntityID);                               });\r\nIs there any way to do this?\r\nConsider that myArray can be dynamic.\r\n"},"comment":{"url":"https://api.github.com/repos/jcachat/EntityFramework.DynamicFilters/issues/comments/70418928","html_url":"https://github.com/jcachat/EntityFramework.DynamicFilters/issues/7#issuecomment-70418928","issue_url":"https://api.github.com/repos/jcachat/EntityFramework.DynamicFilters/issues/7","id":70418928,"user":{"login":"jcachat","id":1613260,"avatar_url":"https://avatars.githubusercontent.com/u/1613260?v=3","gravatar_id":"","url":"https://api.github.com/users/jcachat","html_url":"https://github.com/jcachat","followers_url":"https://api.github.com/users/jcachat/followers","following_url":"https://api.github.com/users/jcachat/following{/other_user}","gists_url":"https://api.github.com/users/jcachat/gists{/gist_id}","starred_url":"https://api.github.com/users/jcachat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcachat/subscriptions","organizations_url":"https://api.github.com/users/jcachat/orgs","repos_url":"https://api.github.com/users/jcachat/repos","events_url":"https://api.github.com/users/jcachat/events{/privacy}","received_events_url":"https://api.github.com/users/jcachat/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T18:19:56Z","updated_at":"2015-01-18T18:19:56Z","body":"I just pushed changes (and updated the NuGet package) to support Contains() in the linq filter.  It's not pretty, but it seems to work.   I'll update the docs shortly to show examples of the linq filters.  But, for now, this is roughly what a Contains() filter would look like:\r\n\r\n    var values = new List<int> { 1, 2, 3, 4, 5 };\r\n    modelBuilder.Filter(\"BlogContainsTest\", (BlogEntry b, List<int> valueList) => valueList.Contains(b.IntValue), () => values);\r\n\r\nIt requires an IEnumerable<T> list (it will not support the non-generic IEnumerable or ArrayList) but should support any simple datatype as T."}}