{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/866","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/866/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/866/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/866/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/866","id":104318047,"number":866,"title":"Mapping Dynamic Object to an Entity Framework DataObject","user":{"login":"tsramanathan","id":4104107,"avatar_url":"https://avatars.githubusercontent.com/u/4104107?v=3","gravatar_id":"","url":"https://api.github.com/users/tsramanathan","html_url":"https://github.com/tsramanathan","followers_url":"https://api.github.com/users/tsramanathan/followers","following_url":"https://api.github.com/users/tsramanathan/following{/other_user}","gists_url":"https://api.github.com/users/tsramanathan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsramanathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsramanathan/subscriptions","organizations_url":"https://api.github.com/users/tsramanathan/orgs","repos_url":"https://api.github.com/users/tsramanathan/repos","events_url":"https://api.github.com/users/tsramanathan/events{/privacy}","received_events_url":"https://api.github.com/users/tsramanathan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-01T17:37:16Z","updated_at":"2015-09-10T11:19:08Z","closed_at":null,"body":"I am trying to perform an update action in which are using partial updates.  The Incoming object is a dynamic object with lesser properties compared to the EF Data object, when we try to use the DynamicMap, it nullfies the properties that are not being passed from dynamic request \r\n\r\nHere is the below example\r\n\r\ndynamic  = {\"prop1\": \"value1\", \r\n                     \"prop2\":\"value2\"}\r\nAccount = {prop1,\r\n                 prop2,\r\n                 prop3,\r\n                 prop4}\r\n\r\nDynamic dynamic = {incoming request} \r\nAccount account = Get(id); (It has the original values)\r\nMapper.DynamicMap(dynamic, account); (Expected only to change the couple of properties)\r\n\r\nIn the above it nullifies prop3 & prop4. Is my usage of Dynamic Map correct?  or Is this not the expected functionality of DynamicMap?  \r\n\r\nThanks in Advance!"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/139207785","html_url":"https://github.com/AutoMapper/AutoMapper/issues/866#issuecomment-139207785","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/866","id":139207785,"user":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T11:19:08Z","updated_at":"2015-09-10T11:19:08Z","body":"@jbogard A [silly gist](https://gist.github.com/lbargaoanu/8cc2a4a7dd0e35b8ef21#file-dynamictoobject-cs). But I've heard the idea before. I think something like this could be useful. Perhaps a built in mapper."}}