<?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 Introduction and Samples from NETDUG</title>
	<atom:link href="http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=automapper-introduction-and-samples-from-netdug</link>
	<description></description>
	<lastBuildDate>Sun, 12 Feb 2012 18:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Richard Cirerol</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-50786</link>
		<dc:creator>Richard Cirerol</dc:creator>
		<pubDate>Mon, 30 Nov 2009 07:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-50786</guid>
		<description>&lt;a href=&quot;#comment-50651&quot; rel=&quot;nofollow&quot;&gt;@waveyus&lt;/a&gt; 
Looks like you are really close to having it solved.  Have you tried something similar to the following?

&lt;code&gt;.BeforeMap((s,d) =&gt; attendee = Container.GetInstance&lt;IAttendeeRepository&gt;().GetByIds(s))&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-50651" rel="nofollow">@waveyus</a><br />
Looks like you are really close to having it solved.  Have you tried something similar to the following?</p>
<p><code>.BeforeMap((s,d) => attendee = Container.GetInstance&lt;IAttendeeRepository&gt;().GetByIds(s))</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waveyus</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-50651</link>
		<dc:creator>waveyus</dc:creator>
		<pubDate>Tue, 24 Nov 2009 19:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-50651</guid>
		<description>In Sample 2, AttendeeProfile.cs, line 21:

.BeforeMap((s, d) =&gt; attendee = new AttendeeRepository().GetById(s))

Can you show an example if we wanted to inject repository instance using IoC?( IAttendeeRepository.GetByIds(s))

Thanks.</description>
		<content:encoded><![CDATA[<p>In Sample 2, AttendeeProfile.cs, line 21:</p>
<p>.BeforeMap((s, d) =&gt; attendee = new AttendeeRepository().GetById(s))</p>
<p>Can you show an example if we wanted to inject repository instance using IoC?( IAttendeeRepository.GetByIds(s))</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cirerol</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49669</link>
		<dc:creator>Richard Cirerol</dc:creator>
		<pubDate>Thu, 08 Oct 2009 14:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49669</guid>
		<description>&lt;a href=&quot;#comment-49665&quot; rel=&quot;nofollow&quot;&gt;@dario-g&lt;/a&gt; We have several domains/bounded contexts, with a mixture of anemic and strong models (by design). 

Your question is a bit anemic...can you put some context around it so that I might provide a more relevant answer?</description>
		<content:encoded><![CDATA[<p><a href="#comment-49665" rel="nofollow">@dario-g</a> We have several domains/bounded contexts, with a mixture of anemic and strong models (by design). </p>
<p>Your question is a bit anemic&#8230;can you put some context around it so that I might provide a more relevant answer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dario-g</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49665</link>
		<dc:creator>dario-g</dc:creator>
		<pubDate>Thu, 08 Oct 2009 08:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49665</guid>
		<description>Do you have Anemic Domain-Model?</description>
		<content:encoded><![CDATA[<p>Do you have Anemic Domain-Model?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #450</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49664</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #450</dc:creator>
		<pubDate>Thu, 08 Oct 2009 07:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49664</guid>
		<description>[...] AutoMapper Introduction and Samples from NETDUG - Richard Cirerol gives a little more detail on some of the facets of AutoMapper, along with highlighting some samples of it in use, including those from his recent NETDUG presentation. [...]</description>
		<content:encoded><![CDATA[<p>[...] AutoMapper Introduction and Samples from NETDUG &#8211; Richard Cirerol gives a little more detail on some of the facets of AutoMapper, along with highlighting some samples of it in use, including those from his recent NETDUG presentation. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cirerol</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49660</link>
		<dc:creator>Richard Cirerol</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49660</guid>
		<description>&lt;a href=&quot;#comment-49657&quot; rel=&quot;nofollow&quot;&gt;@KevDog&lt;/a&gt; 
Thanks for pointing out the problem with the link to the second sample.  It is fixed now.</description>
		<content:encoded><![CDATA[<p><a href="#comment-49657" rel="nofollow">@KevDog</a><br />
Thanks for pointing out the problem with the link to the second sample.  It is fixed now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cirerol</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49659</link>
		<dc:creator>Richard Cirerol</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49659</guid>
		<description>&lt;a href=&quot;#comment-49652&quot; rel=&quot;nofollow&quot;&gt;@Dan&lt;/a&gt; If I only want 3 properties, then I would definitely drop the other 7, especially before sending data across a service boundary.  If my identity map already has the entity in memory (1st or 2nd level cache), I don&#039;t need to worry about a call to the db.  It seems that you may be hinting at premature optimization.  Remember, this is a sample project to show capability, not architecture.  On a real project, I can optimize my queries when the need arises.

Richard</description>
		<content:encoded><![CDATA[<p><a href="#comment-49652" rel="nofollow">@Dan</a> If I only want 3 properties, then I would definitely drop the other 7, especially before sending data across a service boundary.  If my identity map already has the entity in memory (1st or 2nd level cache), I don&#8217;t need to worry about a call to the db.  It seems that you may be hinting at premature optimization.  Remember, this is a sample project to show capability, not architecture.  On a real project, I can optimize my queries when the need arises.</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KevDog</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49657</link>
		<dc:creator>KevDog</dc:creator>
		<pubDate>Wed, 07 Oct 2009 20:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49657</guid>
		<description>Both sample links point to the same file.

But then, I will probably only have time to look at the first one anyway. Regardless, thanks for the work you did on these. AutoMapper has definitely become one of my favorite libraries.</description>
		<content:encoded><![CDATA[<p>Both sample links point to the same file.</p>
<p>But then, I will probably only have time to look at the first one anyway. Regardless, thanks for the work you did on these. AutoMapper has definitely become one of my favorite libraries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49652</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 07 Oct 2009 14:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49652</guid>
		<description>What about the case when the domain object has, say 10 properties and the dto has 3?
_repository.GetMeetingById(meetingId; would generate a select with 10 fields and discard 7 of them...</description>
		<content:encoded><![CDATA[<p>What about the case when the domain object has, say 10 properties and the dto has 3?<br />
_repository.GetMeetingById(meetingId; would generate a select with 10 fields and discard 7 of them&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlobalFlora flowers and gifts &#187; Blog Archive &#187; The Covert Code &#8211; Watch This New Product Shoot To #1!</title>
		<link>http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/comment-page-1/#comment-49647</link>
		<dc:creator>GlobalFlora flowers and gifts &#187; Blog Archive &#187; The Covert Code &#8211; Watch This New Product Shoot To #1!</dc:creator>
		<pubDate>Wed, 07 Oct 2009 07:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/10/06/automapper-introduction-and-samples-from-netdug/#comment-49647</guid>
		<description>[...] AutoMapper Introduction and Samples from NETDUG &#124; Elegant Code [...]</description>
		<content:encoded><![CDATA[<p>[...] AutoMapper Introduction and Samples from NETDUG | Elegant Code [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

