{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/852","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/852/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/852/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/852/events","html_url":"https://github.com/AutoMapper/AutoMapper/pull/852","id":102583143,"number":852,"title":"Small changes to expression-binding behaviour","user":{"login":"jasonholloway","id":6573293,"avatar_url":"https://avatars.githubusercontent.com/u/6573293?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonholloway","html_url":"https://github.com/jasonholloway","followers_url":"https://api.github.com/users/jasonholloway/followers","following_url":"https://api.github.com/users/jasonholloway/following{/other_user}","gists_url":"https://api.github.com/users/jasonholloway/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonholloway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonholloway/subscriptions","organizations_url":"https://api.github.com/users/jasonholloway/orgs","repos_url":"https://api.github.com/users/jasonholloway/repos","events_url":"https://api.github.com/users/jasonholloway/events{/privacy}","received_events_url":"https://api.github.com/users/jasonholloway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/16","html_url":"https://github.com/AutoMapper/AutoMapper/milestones/4.2.0","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/16/labels","id":1297835,"number":16,"title":"4.2.0","description":"","creator":{"login":"jbogard","id":104498,"avatar_url":"https://avatars.githubusercontent.com/u/104498?v=3","gravatar_id":"","url":"https://api.github.com/users/jbogard","html_url":"https://github.com/jbogard","followers_url":"https://api.github.com/users/jbogard/followers","following_url":"https://api.github.com/users/jbogard/following{/other_user}","gists_url":"https://api.github.com/users/jbogard/gists{/gist_id}","starred_url":"https://api.github.com/users/jbogard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbogard/subscriptions","organizations_url":"https://api.github.com/users/jbogard/orgs","repos_url":"https://api.github.com/users/jbogard/repos","events_url":"https://api.github.com/users/jbogard/events{/privacy}","received_events_url":"https://api.github.com/users/jbogard/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2015-09-09T14:46:10Z","updated_at":"2015-10-21T14:27:20Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-08-23T02:51:38Z","updated_at":"2015-10-22T03:06:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/pulls/852","html_url":"https://github.com/AutoMapper/AutoMapper/pull/852","diff_url":"https://github.com/AutoMapper/AutoMapper/pull/852.diff","patch_url":"https://github.com/AutoMapper/AutoMapper/pull/852.patch"},"body":"Custom projections weren't being applied to root objects, only to children via the binding mechanism. I've moved the code for rendering the custom projection into a clause in MappingEngine.CreateMapExpression, so it can apply itself either through binding (via MappedTypeExpressionBinder) or up front, at the beginning of expression mapping.\r\n\r\nAlso lowered the priority of AssignableExpressionMapper, which wasn't giving custom projections chance to kick in under certain circumstances.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/150093311","html_url":"https://github.com/AutoMapper/AutoMapper/pull/852#issuecomment-150093311","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/852","id":150093311,"user":{"login":"jasonholloway","id":6573293,"avatar_url":"https://avatars.githubusercontent.com/u/6573293?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonholloway","html_url":"https://github.com/jasonholloway","followers_url":"https://api.github.com/users/jasonholloway/followers","following_url":"https://api.github.com/users/jasonholloway/following{/other_user}","gists_url":"https://api.github.com/users/jasonholloway/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonholloway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonholloway/subscriptions","organizations_url":"https://api.github.com/users/jasonholloway/orgs","repos_url":"https://api.github.com/users/jasonholloway/repos","events_url":"https://api.github.com/users/jasonholloway/events{/privacy}","received_events_url":"https://api.github.com/users/jasonholloway/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T03:06:56Z","updated_at":"2015-10-22T03:06:56Z","body":"Basically I need to separate out the merge with develop to a separate commit, but I'll do that tomorrow... too late now."}}