{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/649","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/649/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/649/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/649/events","html_url":"https://github.com/AutoMapper/AutoMapper/pull/649","id":51944672,"number":649,"title":"Fix ExpressionMapper error for sub property expression conversion","user":{"login":"TylerCarlson1","id":6801536,"avatar_url":"https://avatars.githubusercontent.com/u/6801536?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerCarlson1","html_url":"https://github.com/TylerCarlson1","followers_url":"https://api.github.com/users/TylerCarlson1/followers","following_url":"https://api.github.com/users/TylerCarlson1/following{/other_user}","gists_url":"https://api.github.com/users/TylerCarlson1/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerCarlson1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerCarlson1/subscriptions","organizations_url":"https://api.github.com/users/TylerCarlson1/orgs","repos_url":"https://api.github.com/users/TylerCarlson1/repos","events_url":"https://api.github.com/users/TylerCarlson1/events{/privacy}","received_events_url":"https://api.github.com/users/TylerCarlson1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-12-15T03:12:31Z","updated_at":"2015-07-10T02:19:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/pulls/649","html_url":"https://github.com/AutoMapper/AutoMapper/pull/649","diff_url":"https://github.com/AutoMapper/AutoMapper/pull/649.diff","patch_url":"https://github.com/AutoMapper/AutoMapper/pull/649.patch"},"body":"Fix Issues with Expression Mappings #648 when use properties which types have their own mappings that need to be converted over.\r\n\r\nMultiple scenarios have been solved for now including the original problem.\r\nIssue still lies with multiple level same type one to many relationships. (One to many relationships of different types work fine)\r\nEx: ```Tools.Any(t => t.SubTools.Any(t => t.ID == id))``` will fail to convert over cause Any function will still be assuming ToolDTO instead of Tool as generic parameter type."},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/120204359","html_url":"https://github.com/AutoMapper/AutoMapper/pull/649#issuecomment-120204359","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/649","id":120204359,"user":{"login":"TylerCarlson1","id":6801536,"avatar_url":"https://avatars.githubusercontent.com/u/6801536?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerCarlson1","html_url":"https://github.com/TylerCarlson1","followers_url":"https://api.github.com/users/TylerCarlson1/followers","following_url":"https://api.github.com/users/TylerCarlson1/following{/other_user}","gists_url":"https://api.github.com/users/TylerCarlson1/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerCarlson1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerCarlson1/subscriptions","organizations_url":"https://api.github.com/users/TylerCarlson1/orgs","repos_url":"https://api.github.com/users/TylerCarlson1/repos","events_url":"https://api.github.com/users/TylerCarlson1/events{/privacy}","received_events_url":"https://api.github.com/users/TylerCarlson1/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T02:19:09Z","updated_at":"2015-07-10T02:19:09Z","body":"It can support the order by statement and will convert the queryable and because the destination type is the same as the UseDataSource once it has to enumerate after query translation it will use Project().To() so that you get the benifits of selecting directly from EF.\r\n```\r\nvar result = new User[0].AsQueryable().UseAsDataSource().For<UserModel>().OrderBy(s => s.Id).ThenBy(s => s.FullName);\r\n```\r\n\r\nYour select method on the other hand is not supported right now.\r\nThingModels specifically is causing problems being IEnumerable.  I think I account for it for the final result to know whether to use projection or not but that might be what's stopping it from being supported.\r\n\r\nBut in that case it would see the dest type is not the same so it wouldn't bother with projection because there's no need for it.\r\n\r\nAs for the PR  it might be a while to merge it into development and hope I can get VS 2015 to stop saying System.Object is not defined.\r\n\r\nUnless you want to do the merge @jbogard?"}}