{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/897","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/897/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/897/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/897","id":106802942,"number":897,"title":"Call IMappingExpression method to all created mappings","user":{"login":"brenovieira","id":7158650,"avatar_url":"https://avatars.githubusercontent.com/u/7158650?v=3","gravatar_id":"","url":"https://api.github.com/users/brenovieira","html_url":"https://github.com/brenovieira","followers_url":"https://api.github.com/users/brenovieira/followers","following_url":"https://api.github.com/users/brenovieira/following{/other_user}","gists_url":"https://api.github.com/users/brenovieira/gists{/gist_id}","starred_url":"https://api.github.com/users/brenovieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenovieira/subscriptions","organizations_url":"https://api.github.com/users/brenovieira/orgs","repos_url":"https://api.github.com/users/brenovieira/repos","events_url":"https://api.github.com/users/brenovieira/events{/privacy}","received_events_url":"https://api.github.com/users/brenovieira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-16T15:51:14Z","updated_at":"2015-09-17T08:09:30Z","closed_at":null,"body":"I'd like to call ```IgnoreAllPropertiesWithAnInaccessibleSetter()``` and/or ```IgnoreAllSourcePropertiesWithAnInaccessibleSetter()``` and a custom method to ignore properties in all my mappings.\r\n\r\nI couldn't find a way to do this. Is it possible?\r\nThe main reason I call these is because some of my classes have read-only properties, like:\r\n```\r\npublic string SomeProperty\r\n{\r\n\tget\r\n\t{\r\n\t\treturn string.Format(\"{0} - {1}\", Id, Type);\r\n\t}\r\n}\r\n```\r\nEven if both Source and Destination have the same read-only property, ```Mapper.AssertConfigurationIsValid();``` throw an Exception.\r\n\r\nCould AutoMapper have something like ```IConfiguration.GetMaps()``` to let me iterate through maps I created ? or some method to apply directly to all created maps.\r\n\r\nSince each mapping has different ```TSource``` and ```TDestination``` in ```IMappingExpression<TSource, TDestination>```, I don't know the type ```IConfiguration.GetMaps()``` could return, but I didn't put to much thought in it.\r\n\r\nWhat do you think ?"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/140999046","html_url":"https://github.com/AutoMapper/AutoMapper/issues/897#issuecomment-140999046","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/897","id":140999046,"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-17T08:09:30Z","updated_at":"2015-09-17T08:09:30Z","body":"See [this](https://github.com/AutoMapper/AutoMapper/blob/1e759c0e57c94bf9ec2d2224e557bd9a6c940d41/src/UnitTests/Bug/InternalProperties.cs)."}}