{"action":"closed","issue":{"url":"https://api.github.com/repos/refactorthis/GraphDiff/issues/126","labels_url":"https://api.github.com/repos/refactorthis/GraphDiff/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/refactorthis/GraphDiff/issues/126/comments","events_url":"https://api.github.com/repos/refactorthis/GraphDiff/issues/126/events","html_url":"https://github.com/refactorthis/GraphDiff/issues/126","id":56506183,"number":126,"title":"Do foreign Id's get mapped automatically?","user":{"login":"cryo75","id":3060986,"avatar_url":"https://avatars.githubusercontent.com/u/3060986?v=3","gravatar_id":"","url":"https://api.github.com/users/cryo75","html_url":"https://github.com/cryo75","followers_url":"https://api.github.com/users/cryo75/followers","following_url":"https://api.github.com/users/cryo75/following{/other_user}","gists_url":"https://api.github.com/users/cryo75/gists{/gist_id}","starred_url":"https://api.github.com/users/cryo75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryo75/subscriptions","organizations_url":"https://api.github.com/users/cryo75/orgs","repos_url":"https://api.github.com/users/cryo75/repos","events_url":"https://api.github.com/users/cryo75/events{/privacy}","received_events_url":"https://api.github.com/users/cryo75/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/refactorthis/GraphDiff/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-04T10:00:40Z","updated_at":"2015-07-22T11:44:41Z","closed_at":"2015-07-22T11:44:40Z","body":"If I have the following model (mapping is done using EF code first)::\r\n\r\n    public class Customer\r\n    {\r\n        public int Id {get; set;}\r\n        public int CustomerTypeId {get; set;}\r\n        public virtual CustomerType {get; set;}\r\n    }\r\n\r\nAnd the corresponding Dto like this:\r\n\r\n    public class CustomerDto\r\n    {\r\n        public int Id {get; set;}\r\n        public virtual CustomerType {get; set;}\r\n    }\r\n\r\nWhen using GraphDiff to update the object graph, will it know that CustomerType maps to CustomerTypeId and set the foreign ID's correctly?"}}