<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AutoMapper feature: interfaces and dynamic mapping</title>
	<atom:link href="http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/</link>
	<description>Strong opinions, weakly held</description>
	<lastBuildDate>Thu, 23 May 2013 23:40:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/#comment-3781</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 25 Aug 2011 14:43:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/04/14/automapper-feature-interfaces-and-dynamic-mapping.aspx#comment-3781</guid>
		<description>Being totally honest here, I would love to see a pull request on this one!</description>
		<content:encoded><![CDATA[<p>Being totally honest here, I would love to see a pull request on this one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avonwyss</title>
		<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/#comment-3780</link>
		<dc:creator>avonwyss</dc:creator>
		<pubDate>Thu, 25 Aug 2011 14:38:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/04/14/automapper-feature-interfaces-and-dynamic-mapping.aspx#comment-3780</guid>
		<description>I&#039;m running into the same issue as Nathan and Pavel.

Why don&#039;t you create the &quot;proxy&quot; entities using Reflection.Emit with both getters and setters, and have those emitted entity classes implement the interface? Doing this with Relfection.Emit  should not be too hard really, and it would also not require merging a proxying library under the hood while solving the issue at hand (because all you would the do is to substitute the interface type for the type of the emitted class whenever you get the interface as type, all the rest of AutoMapper would do its magic as before).</description>
		<content:encoded><![CDATA[<p>I&#8217;m running into the same issue as Nathan and Pavel.</p>
<p>Why don&#8217;t you create the &#8220;proxy&#8221; entities using Reflection.Emit with both getters and setters, and have those emitted entity classes implement the interface? Doing this with Relfection.Emit  should not be too hard really, and it would also not require merging a proxying library under the hood while solving the issue at hand (because all you would the do is to substitute the interface type for the type of the emitted class whenever you get the interface as type, all the rest of AutoMapper would do its magic as before).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogardj</title>
		<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/#comment-1444</link>
		<dc:creator>bogardj</dc:creator>
		<pubDate>Mon, 10 May 2010 19:46:24 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/04/14/automapper-feature-interfaces-and-dynamic-mapping.aspx#comment-1444</guid>
		<description>@Sadia

Would you mind posting this on the AutoMapper mailing list?  I&#039;ll be able to track this issue much better there.

Thanks,

Jimmy</description>
		<content:encoded><![CDATA[<p>@Sadia</p>
<p>Would you mind posting this on the AutoMapper mailing list?  I&#8217;ll be able to track this issue much better there.</p>
<p>Thanks,</p>
<p>Jimmy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sadia</title>
		<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/#comment-1443</link>
		<dc:creator>Sadia</dc:creator>
		<pubDate>Mon, 10 May 2010 18:48:52 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/04/14/automapper-feature-interfaces-and-dynamic-mapping.aspx#comment-1443</guid>
		<description>Hi Jimmy,
I need your help. I have been utilizing automapper for my application. I have recently come across an issue. I have seen intermittent expeception in mapping entity objects with DTO objects. It throws the famous Automapper.MappingException and says it is trying to map entityObject1 to DTOObject1 and throws an expections there. After pushing out a new fresh build with no change it started working fine. 

Please help me out how can I further investigate or resolve this issue.

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi Jimmy,<br />
I need your help. I have been utilizing automapper for my application. I have recently come across an issue. I have seen intermittent expeception in mapping entity objects with DTO objects. It throws the famous Automapper.MappingException and says it is trying to map entityObject1 to DTOObject1 and throws an expections there. After pushing out a new fresh build with no change it started working fine. </p>
<p>Please help me out how can I further investigate or resolve this issue.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogardj</title>
		<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/#comment-1442</link>
		<dc:creator>bogardj</dc:creator>
		<pubDate>Wed, 05 May 2010 00:15:26 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/04/14/automapper-feature-interfaces-and-dynamic-mapping.aspx#comment-1442</guid>
		<description>@Nathan

Right now, the interface needs setters. With the dynamic proxy juju going on underneath the covers, it&#039;s the only way I could get it to work right where it actually performs mapping (as opposed to just a pass-through implementation).

Maybe I could create a derived interface type that DOES include setters at runtime, but man, that&#039;ll be tough.  Are you sure you can&#039;t just create an interface w/ setters?</description>
		<content:encoded><![CDATA[<p>@Nathan</p>
<p>Right now, the interface needs setters. With the dynamic proxy juju going on underneath the covers, it&#8217;s the only way I could get it to work right where it actually performs mapping (as opposed to just a pass-through implementation).</p>
<p>Maybe I could create a derived interface type that DOES include setters at runtime, but man, that&#8217;ll be tough.  Are you sure you can&#8217;t just create an interface w/ setters?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Alden</title>
		<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/#comment-1441</link>
		<dc:creator>Nathan Alden</dc:creator>
		<pubDate>Tue, 04 May 2010 23:27:19 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/04/14/automapper-feature-interfaces-and-dynamic-mapping.aspx#comment-1441</guid>
		<description>I am running into the same issue as Pavel. I have a read-only entity interface called IUser. I need each getter to return the anonymous type&#039;s values.</description>
		<content:encoded><![CDATA[<p>I am running into the same issue as Pavel. I have a read-only entity interface called IUser. I need each getter to return the anonymous type&#8217;s values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel Korotkov</title>
		<link>http://lostechies.com/jimmybogard/2009/04/15/automapper-feature-interfaces-and-dynamic-mapping/#comment-1440</link>
		<dc:creator>Pavel Korotkov</dc:creator>
		<pubDate>Mon, 15 Feb 2010 16:58:42 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2009/04/14/automapper-feature-interfaces-and-dynamic-mapping.aspx#comment-1440</guid>
		<description>Hi, Bogardj
Recently I started to playing with AutoMapper and got very enthusiastic about it. It&#039;s really powerful and elegant, I like it.
The question (might be trivial) is that how I can create a dynamic proxy for the given interface
public interface ITest
{
    Int32 Id { get; }
    String Name { get; }
}
If I attribute the properties with set accessors everything works fine with lines 
var tc = new { Id = 1, Name = &quot;Bob&quot; };
var ctc = Mapper.DynamicMap&lt;ITest&gt;(tc);
var id = ctc.Id;
When I have only get accessors an exception is thrown: &quot;KeyNotFoundException. The given key was not present in the dictionary.&quot; Does my setup need some tuning?
Thanks, PK</description>
		<content:encoded><![CDATA[<p>Hi, Bogardj<br />
Recently I started to playing with AutoMapper and got very enthusiastic about it. It&#8217;s really powerful and elegant, I like it.<br />
The question (might be trivial) is that how I can create a dynamic proxy for the given interface<br />
public interface ITest<br />
{<br />
    Int32 Id { get; }<br />
    String Name { get; }<br />
}<br />
If I attribute the properties with set accessors everything works fine with lines<br />
var tc = new { Id = 1, Name = &#8220;Bob&#8221; };<br />
var ctc = Mapper.DynamicMap<itest>(tc);<br />
var id = ctc.Id;<br />
When I have only get accessors an exception is thrown: &#8220;KeyNotFoundException. The given key was not present in the dictionary.&#8221; Does my setup need some tuning?<br />
Thanks, PK</itest></p>
]]></content:encoded>
	</item>
</channel>
</rss>
