<?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: Make your project pluggable with StructureMap</title>
	<atom:link href="http://jonkruger.com/blog/2009/11/11/make-your-project-pluggable-with-structuremap/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonkruger.com/blog/2009/11/11/make-your-project-pluggable-with-structuremap/</link>
	<description></description>
	<pubDate>Fri, 18 May 2012 01:16:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://jonkruger.com/blog/2009/11/11/make-your-project-pluggable-with-structuremap/comment-page-1/#comment-5091</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 29 Aug 2010 01:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=394#comment-5091</guid>
		<description>Just a note, my IRepository where T : IEntity and my RepositoryBase is RepositoryBase where T : class, IEntity</description>
		<content:encoded><![CDATA[<p>Just a note, my IRepository where T : IEntity and my RepositoryBase is RepositoryBase where T : class, IEntity</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://jonkruger.com/blog/2009/11/11/make-your-project-pluggable-with-structuremap/comment-page-1/#comment-5089</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 29 Aug 2010 01:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=394#comment-5089</guid>
		<description>Great article, I am using structuremap in my latest project and need this exact implementation, however because I am also using EF4 and ASP.NET MVC I need to make sure each of these are HttpContextScoped. How would I accomplish this using the above code? What I want to avoide is For().HttpContextScoped().Use(); for every interface that implements IRepository. Thanks!</description>
		<content:encoded><![CDATA[<p>Great article, I am using structuremap in my latest project and need this exact implementation, however because I am also using EF4 and ASP.NET MVC I need to make sure each of these are HttpContextScoped. How would I accomplish this using the above code? What I want to avoide is For().HttpContextScoped().Use(); for every interface that implements IRepository. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://jonkruger.com/blog/2009/11/11/make-your-project-pluggable-with-structuremap/comment-page-1/#comment-4760</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 24 Nov 2009 15:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=394#comment-4760</guid>
		<description>great article enjoy reading :)
i have a question though
i would you return T ?

here is what i'm trying to do but no luck so far.

 public T Get(long id)
    {
        //id....

        DataAccess da = new DataAccess();
        return da.GetAllPeople().ToList();   
      
    }

here is the error 

Error	1	Cannot implicitly convert type 'System.Collections.Generic.List' to 'T'</description>
		<content:encoded><![CDATA[<p>great article enjoy reading :)<br />
i have a question though<br />
i would you return T ?</p>
<p>here is what i&#8217;m trying to do but no luck so far.</p>
<p> public T Get(long id)<br />
    {<br />
        //id&#8230;.</p>
<p>        DataAccess da = new DataAccess();<br />
        return da.GetAllPeople().ToList();   </p>
<p>    }</p>
<p>here is the error </p>
<p>Error	1	Cannot implicitly convert type &#8216;System.Collections.Generic.List&#8217; to &#8216;T&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cowgaR</title>
		<link>http://jonkruger.com/blog/2009/11/11/make-your-project-pluggable-with-structuremap/comment-page-1/#comment-4757</link>
		<dc:creator>cowgaR</dc:creator>
		<pubDate>Sun, 22 Nov 2009 14:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=394#comment-4757</guid>
		<description>it's better to use the word "add" then "save", as save in repository is antipattern ;)

you're using UOW of your preferred persistance layer for that...</description>
		<content:encoded><![CDATA[<p>it&#8217;s better to use the word &#8220;add&#8221; then &#8220;save&#8221;, as save in repository is antipattern ;)</p>
<p>you&#8217;re using UOW of your preferred persistance layer for that&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetKicks.com</title>
		<link>http://jonkruger.com/blog/2009/11/11/make-your-project-pluggable-with-structuremap/comment-page-1/#comment-4742</link>
		<dc:creator>DotNetKicks.com</dc:creator>
		<pubDate>Wed, 11 Nov 2009 16:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=394#comment-4742</guid>
		<description>&lt;strong&gt;Make your project pluggable with StructureMap...&lt;/strong&gt;

You've been kicked (a good thing) - Trackback from DotNetKicks.com...</description>
		<content:encoded><![CDATA[<p><strong>Make your project pluggable with StructureMap&#8230;</strong></p>
<p>You&#8217;ve been kicked (a good thing) - Trackback from DotNetKicks.com&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

