{"comment":{"created_at":"2011-10-10T08:52:56Z","body":"Hmm ye you might have a good reason for that...might be overdoing the \"I want everything to be an interface\" :)","updated_at":"2011-10-10T08:52:56Z","url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/2344149","id":2344149,"user":{"avatar_url":"https://secure.gravatar.com/avatar/da460f26ae44ed4f19cbac276a12751c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cyberzed","id":1001655,"login":"cyberzed"}},"action":"created","issue":{"number":117,"created_at":"2011-09-02T22:13:52Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"<b>cyberzed[CodePlex]</b><br />I&#39;m using AutoMapper to map my entities to datacontracts on a small Silverlight project, and I ran into a single issue. I&#39;m not sure if it&#39;s a limitation I hit or what it is.<br /><br />When I&#39;m mapping from ITweet to TweetContract everything is working as expected, but when I map the other way around I end up with a Castle.Proxies.ITweetProxy instead of the expected ITweet. Now the items is accessible with all the properties but in the give project I have to cast it to a concrete Tweet due to legacy db-stuff, and that is where the castle crumbles.<br /><br />If you look at the project there is a WCF service in the webproject that reproduces the issue at hand.<br /><br />Unable to cast object of type &#39;Castle.Proxies.ITweetProxy&#39; to type &#39;DataLib.Tweet&#39;.","comments":11,"title":"Mapping back from a contract to an interface leaves me with Castle proxies","updated_at":"2011-10-10T08:52:57Z","url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/117","id":1555727,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/cc359c5ccf90d7a24b5976316797b5ec?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jbogard","id":104498,"login":"jbogard"},"html_url":"https://github.com/AutoMapper/AutoMapper/issues/117","labels":[{"name":"CodePlex","url":"https://api.github.com/repos/AutoMapper/AutoMapper/labels/CodePlex","color":"ededed"}],"state":"open"},"legacy":{"issue_id":1555727,"comment_id":2344149}}