<?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: Fun with Generics &#8211; From Repository to DTO</title>
	<atom:link href="http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/</link>
	<description></description>
	<lastBuildDate>Wed, 17 Mar 2010 08:54:42 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Germán Schuager</title>
		<link>http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/comment-page-1/#comment-31234</link>
		<dc:creator>Germán Schuager</dc:creator>
		<pubDate>Wed, 03 Sep 2008 00:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/#comment-31234</guid>
		<description>Good stuff.
Thank you for sharing.</description>
		<content:encoded><![CDATA[<p>Good stuff.<br />
Thank you for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-04-28 &#171; godiane</title>
		<link>http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/comment-page-1/#comment-20287</link>
		<dc:creator>links for 2008-04-28 &#171; godiane</dc:creator>
		<pubDate>Mon, 28 Apr 2008 16:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/#comment-20287</guid>
		<description>[...] Elegant Code » Fun with Generics - From Repository to DTO (tags: Development programming Tips) [...]</description>
		<content:encoded><![CDATA[<p>[...] Elegant Code » Fun with Generics &#8211; From Repository to DTO (tags: Development programming Tips) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elegant Code &#187; DTO&#8217;s or Serialized Domain Entities?</title>
		<link>http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/comment-page-1/#comment-20200</link>
		<dc:creator>Elegant Code &#187; DTO&#8217;s or Serialized Domain Entities?</dc:creator>
		<pubDate>Sun, 27 Apr 2008 08:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/#comment-20200</guid>
		<description>[...] wrote a post a while back showing a way to &#8216;templatize&#8216; the process. My current implementations are much different with LINQ now, but maybe it could [...]</description>
		<content:encoded><![CDATA[<p>[...] wrote a post a while back showing a way to &#8216;templatize&#8216; the process. My current implementations are much different with LINQ now, but maybe it could [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 8 Links Today (2007-12-12)</title>
		<link>http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/comment-page-1/#comment-16436</link>
		<dc:creator>8 Links Today (2007-12-12)</dc:creator>
		<pubDate>Wed, 12 Dec 2007 15:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/#comment-16436</guid>
		<description>[...] Elegant Code » Fun with Generics - From Repository to DTO [...]</description>
		<content:encoded><![CDATA[<p>[...] Elegant Code » Fun with Generics &#8211; From Repository to DTO [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarod Ferguson</title>
		<link>http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/comment-page-1/#comment-16363</link>
		<dc:creator>Jarod Ferguson</dc:creator>
		<pubDate>Fri, 07 Dec 2007 05:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/#comment-16363</guid>
		<description>I dig it. Much cleaner. I was initially thinking I would want list functionality returned from the assembler to the service, but that is really not a concern of the assembler. Could always do a new List in the service if ever needed (actually cant think of a good reason), defer it to the latest possible moment.

Thanks for the suggestion!</description>
		<content:encoded><![CDATA[<p>I dig it. Much cleaner. I was initially thinking I would want list functionality returned from the assembler to the service, but that is really not a concern of the assembler. Could always do a new List in the service if ever needed (actually cant think of a good reason), defer it to the latest possible moment.</p>
<p>Thanks for the suggestion!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe K</title>
		<link>http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/comment-page-1/#comment-16358</link>
		<dc:creator>Joe K</dc:creator>
		<pubDate>Thu, 06 Dec 2007 17:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/05/fun-with-generics-from-repository-to-dto/#comment-16358</guid>
		<description>How about in your abstract assembler doing the following?

        public IEnumerable DomainEntitiesToDtos(IEnumerable domainEntityList)
        {
            foreach (TDomainEntity domainEntity in domainEntityList)
            {
                yield return DomainEntityToDto(domainEntity);
            }
        }

        public IEnumerable DtosToDomainEntities(IEnumerable dtoList)
        {
            foreach (TDto dto in dtoList)
            {
                yield return DtoToDomainEntity(dto);
            }
        }</description>
		<content:encoded><![CDATA[<p>How about in your abstract assembler doing the following?</p>
<p>        public IEnumerable DomainEntitiesToDtos(IEnumerable domainEntityList)<br />
        {<br />
            foreach (TDomainEntity domainEntity in domainEntityList)<br />
            {<br />
                yield return DomainEntityToDto(domainEntity);<br />
            }<br />
        }</p>
<p>        public IEnumerable DtosToDomainEntities(IEnumerable dtoList)<br />
        {<br />
            foreach (TDto dto in dtoList)<br />
            {<br />
                yield return DtoToDomainEntity(dto);<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
