{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/246","repository_url":"https://api.github.com/repos/AutoMapper/AutoMapper","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/246/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/246/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/246","id":7051030,"node_id":"MDU6SXNzdWU3MDUxMDMw","number":246,"title":"Mapping to pull from IRepository","user":{"login":"dealproc","id":1635244,"node_id":"MDQ6VXNlcjE2MzUyNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1635244?v=4","gravatar_id":"","url":"https://api.github.com/users/dealproc","html_url":"https://github.com/dealproc","followers_url":"https://api.github.com/users/dealproc/followers","following_url":"https://api.github.com/users/dealproc/following{/other_user}","gists_url":"https://api.github.com/users/dealproc/gists{/gist_id}","starred_url":"https://api.github.com/users/dealproc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dealproc/subscriptions","organizations_url":"https://api.github.com/users/dealproc/orgs","repos_url":"https://api.github.com/users/dealproc/repos","events_url":"https://api.github.com/users/dealproc/events{/privacy}","received_events_url":"https://api.github.com/users/dealproc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2012-09-21T19:34:55Z","updated_at":"2019-05-08T20:06:18Z","closed_at":"2012-09-21T21:36:34Z","author_association":"NONE","body":"Wondering how you go about creating a map that pulls an object from a Repository, given an Id...\n\n`````` C#\n// data model\npublic class Company\n{\nint Id {get;set;}\n}\npublic class User\n{\nCompany Company{get;set;}\n}\n\n// dto model\npublic class UserDTO\n{\nint CompanyId{get;set;}\n}\n\n// mapping\nMapper.CreateMap<UserDTO, User>()\n    .ForMember(dest => dest.Company, opt => ????); // how do I Inject my repository here somehow for use to do the lookup?```\n``````\n"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/490631359","html_url":"https://github.com/AutoMapper/AutoMapper/issues/246#issuecomment-490631359","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/246","id":490631359,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MDYzMTM1OQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-05-08T20:06:18Z","updated_at":"2019-05-08T20:06:18Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs."}}
{"actor":{"display_login":"lock"}}