{"issue":{"created_at":"2011-11-25T12:43:14Z","state":"open","updated_at":"2011-11-25T12:43:14Z","comments":0,"user":{"gravatar_id":"84a553e463bb05113eca2d351ba4929c","id":145854,"url":"https://api.github.com/users/igitur","login":"igitur","avatar_url":"https://secure.gravatar.com/avatar/84a553e463bb05113eca2d351ba4929c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi,\r\n\r\nPlease refer to https://groups.google.com/forum/#!topic/automapper-users/0tUKY11bZHw for the full discussion.\r\n\r\nI'd like to to access an object's parent in the .ConstructUsing method.\r\n\r\nJimmy said:\r\n```\r\n> Actually, this isn't too bad of a fix.  Right now I do something like this:\r\n```\r\n\t\t\tif (typeMap != null && typeMap.DestinationCtor != null)\r\n\t\t\t\treturn typeMap.DestinationCtor(context.SourceValue);\r\n```\r\n> But that \"context\" variable has all of the contextual information, including the parent object.  I could modify that overload to > take the ResolutionContext object instead.  Look for a drop in the next day or so (or feel free to submit a pull request yourself ;)\r\n","assignee":null,"number":151,"id":2348975,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Parent object access in .ConstructUsing()","closed_at":null,"html_url":"https://github.com/AutoMapper/AutoMapper/issues/151","url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/151","milestone":null},"action":"opened"}