{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1028","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1028/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1028/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1028/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1028","id":127045705,"number":1028,"title":"UseAsDataSource and reverse mapping","user":{"login":"liquidsnk","id":283740,"avatar_url":"https://avatars.githubusercontent.com/u/283740?v=3","gravatar_id":"","url":"https://api.github.com/users/liquidsnk","html_url":"https://github.com/liquidsnk","followers_url":"https://api.github.com/users/liquidsnk/followers","following_url":"https://api.github.com/users/liquidsnk/following{/other_user}","gists_url":"https://api.github.com/users/liquidsnk/gists{/gist_id}","starred_url":"https://api.github.com/users/liquidsnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquidsnk/subscriptions","organizations_url":"https://api.github.com/users/liquidsnk/orgs","repos_url":"https://api.github.com/users/liquidsnk/repos","events_url":"https://api.github.com/users/liquidsnk/events{/privacy}","received_events_url":"https://api.github.com/users/liquidsnk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-16T18:53:58Z","updated_at":"2016-01-17T09:40:59Z","closed_at":null,"body":"Documentation on UseAsDataSource seems to imply that AutoMapper will figure out how to map an expression directed at (in the example) an OrderLineDTO to an expression meant for an OrderLine: https://github.com/AutoMapper/AutoMapper/wiki/Expression-Translation-(UseAsDataSource)\r\nAnd it will do so having only a mapping defined from OrderLine to OrderLineDTO and not the other way around.\r\n\r\nHowever, my experience trying this is that it will fail, and even AutoMapper tests are mapping the reverse:\r\nhttps://github.com/AutoMapper/AutoMapper/blob/develop/src/UnitTests/Query/SourceInjectedQuery.cs#L38\r\n\r\nAm I missunderstanding the documentation or is this just a problem with it? Or the idea is that this scenario should work?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/172306257","html_url":"https://github.com/AutoMapper/AutoMapper/issues/1028#issuecomment-172306257","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/1028","id":172306257,"user":{"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},"created_at":"2016-01-17T09:40:59Z","updated_at":"2016-01-17T09:40:59Z","body":"Can you update that?\n\nOn Saturday, January 16, 2016, Tyler Carlson <notifications@github.com>\nwrote:\n\n> I think you are right. The documentation is incorrect. For UseAsDataSource\n> to work properly you need mapping both ways.\n> OrderLine to OrderLineDTO is for the Project.To part\n> OrderLineDTO to OrderLine is for Expression Translation\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/AutoMapper/AutoMapper/issues/1028#issuecomment-172255657>\n> .\n>\n"}}