{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1833","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1833/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1833/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1833/events","html_url":"https://github.com/aspnet/EntityFramework/issues/1833","id":61925771,"number":1833,"title":"Support filtered Include","user":{"login":"0xdeafcafe","id":2768524,"avatar_url":"https://avatars3.githubusercontent.com/u/2768524?v=3","gravatar_id":"","url":"https://api.github.com/users/0xdeafcafe","html_url":"https://github.com/0xdeafcafe","followers_url":"https://api.github.com/users/0xdeafcafe/followers","following_url":"https://api.github.com/users/0xdeafcafe/following{/other_user}","gists_url":"https://api.github.com/users/0xdeafcafe/gists{/gist_id}","starred_url":"https://api.github.com/users/0xdeafcafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xdeafcafe/subscriptions","organizations_url":"https://api.github.com/users/0xdeafcafe/orgs","repos_url":"https://api.github.com/users/0xdeafcafe/repos","events_url":"https://api.github.com/users/0xdeafcafe/events{/privacy}","received_events_url":"https://api.github.com/users/0xdeafcafe/received_events","type":"User","site_admin":false},"labels":[{"id":76481854,"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/type-enhancement","name":"type-enhancement","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/2","html_url":"https://github.com/aspnet/EntityFramework/milestone/2","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/2/labels","id":648040,"number":2,"title":"Backlog","description":"Issues that have been approved but are not scheduled a specific release.","creator":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars1.githubusercontent.com/u/1226749?v=3","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"open_issues":357,"closed_issues":34,"state":"open","created_at":"2014-05-03T18:58:28Z","updated_at":"2017-05-08T17:19:51Z","due_on":null,"closed_at":null},"comments":61,"created_at":"2015-03-16T00:12:55Z","updated_at":"2017-05-08T20:46:53Z","closed_at":null,"body":"Doing a `.Where()` inside a `.Include()` is allowed (by the syntax, it fails in execution). However, if you then follow that up with a `.ThenInclude()`, like so:\n\n``` csharp\n.Include(t => t.Ratings.Where(r => !r.IsDeleted))\n.ThenInclude(r => r.User)\n```\n\nYou get the following error:\n\n> 'IEnumerable<Rating>' does not contain a definition for 'User' and no extension method 'User' accepting a first argument of type 'IEnumerable<Rating>' could be found (are you missing a using directive or an assembly reference?)\n\nIs this something you're aware of and going to allow in a future version, or am I just doing something wrong and It's already supported?\n"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/299986017","html_url":"https://github.com/aspnet/EntityFramework/issues/1833#issuecomment-299986017","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1833","id":299986017,"user":{"login":"anpete","id":1210944,"avatar_url":"https://avatars3.githubusercontent.com/u/1210944?v=3","gravatar_id":"","url":"https://api.github.com/users/anpete","html_url":"https://github.com/anpete","followers_url":"https://api.github.com/users/anpete/followers","following_url":"https://api.github.com/users/anpete/following{/other_user}","gists_url":"https://api.github.com/users/anpete/gists{/gist_id}","starred_url":"https://api.github.com/users/anpete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anpete/subscriptions","organizations_url":"https://api.github.com/users/anpete/orgs","repos_url":"https://api.github.com/users/anpete/repos","events_url":"https://api.github.com/users/anpete/events{/privacy}","received_events_url":"https://api.github.com/users/anpete/received_events","type":"User","site_admin":false},"created_at":"2017-05-08T20:46:53Z","updated_at":"2017-05-08T20:46:53Z","body":"@gdoron Nothing at the moment, sorry. \r\n@johnkwaters Do you mean ```modelBuilder.Entity<ITenant>()```? If so, we don't, but it should be very easy to write a helper method that loops over all entities in the model and applies to filter to those that implement the interface? "}}
{"actor":{"display_login":"anpete"}}