{"action":"opened","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/820","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/820/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/820/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/820/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/820","id":99688435,"number":820,"title":"How to ignore an inner nested object when using AutoMapper","user":{"login":"andreluisce","id":10565858,"avatar_url":"https://avatars.githubusercontent.com/u/10565858?v=3","gravatar_id":"","url":"https://api.github.com/users/andreluisce","html_url":"https://github.com/andreluisce","followers_url":"https://api.github.com/users/andreluisce/followers","following_url":"https://api.github.com/users/andreluisce/following{/other_user}","gists_url":"https://api.github.com/users/andreluisce/gists{/gist_id}","starred_url":"https://api.github.com/users/andreluisce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreluisce/subscriptions","organizations_url":"https://api.github.com/users/andreluisce/orgs","repos_url":"https://api.github.com/users/andreluisce/repos","events_url":"https://api.github.com/users/andreluisce/events{/privacy}","received_events_url":"https://api.github.com/users/andreluisce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-07T16:56:34Z","updated_at":"2015-08-07T16:56:34Z","closed_at":null,"body":"Hello I have the classes:\r\n\r\nClass User\r\n\r\npublic class User\r\n{\r\n    public Int64 Id { get; set; }\r\n    public string Name { get; set; }\r\n    public string Email { get; set; }        \r\n    public Profile Profile { get; set; } //EF one to one\r\n}\r\nClass Profile\r\n\r\n    public class Profile \r\n{\r\n    public Int64 Id { get; set; }\r\n    public string Skype { get; set; }\r\n    public string Phone { get; set; }\r\n    public string Mobile { get; set; }\r\n    public virtual ICollection<Address> Addresses { get; set; }\r\n    public virtual User User { get; set; } //This is because EF Mappings\r\n}\r\nClass User DTO\r\n\r\npublic class UserDTO\r\n{\r\n    public string Name { get; set; }\r\n    public string Email { get; set; }        \r\n    public Profile Profile { get; set; }\r\n}\r\nI did the configurations to Map User to UserDTO\r\n\r\nMapper.CreateMap<User, UserDTO>();\r\nI need to have the Profile.User because of the Entity Framework One to One Relationship but I don't want the Profile.User to be shown in the Mapping.\r\n\r\nHow can I ignore the Profile.User?"}}