<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Iteration #4 – Make the application loosely coupled</title><link>http://asp.net</link><pubDate>Wed, 06 Feb 2013 16:45:16 GMT</pubDate><generator>umbraco</generator><description>Comments for Iteration #4 – Make the application loosely coupled</description><language>en</language><atom:link href="http://asp.net/rss/comments/27617" rel="self" type="application/rss+xml" /><item><title>Comment Posted by ludwigs3rd</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Tue, 22 Jun 2010 12:03:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009181</guid><description><![CDATA[ <p>Hi,</p><p>Great article! I&#39;m using LINQ to SQL. Would you recommend I return IQueryable&lt;T&gt; instead of IEnumerable&lt;T&gt; in ContactManagerService.ListContacts()? </p><p>Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ludwigs3rd.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by virshu</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Wed, 30 Jun 2010 01:58:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009256</guid><description><![CDATA[ <p>I think there is a typo (bug) in Listing 1 or 2... Listing one has IContactRepository and the class in Listing 2 implements IContactManagerRepository. Troubleshooting exercise for the user, I guess :)</p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/virshu.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cronopio1122</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Sat, 18 Sep 2010 18:41:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010287</guid><description><![CDATA[ <p>Agree with the typo! I was going up and down the text until i figured it out. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cronopio1122.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mcmcph</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Fri, 01 Oct 2010 16:15:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010468</guid><description><![CDATA[ <p>Hello -- Isn&#39;t this project still leaking through the definition of ContactManager.Models.Contact, which is an EntityObject generated by EF?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mcmcph.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mcmcph</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Fri, 01 Oct 2010 19:15:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010469</guid><description><![CDATA[ <p>what I mean is:  Is it a valid use of the Repository Pattern, in a DDD sense, if you&#39;re exposing EF objects like Contact?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mcmcph.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tryinhard</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Tue, 08 Feb 2011 11:03:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011975</guid><description><![CDATA[ <p>Thanks!  These pattern examples have been invaluable to me.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/tryinhard.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mcnux</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Sun, 27 Feb 2011 16:45:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012263</guid><description><![CDATA[ <p>Listing 5 should read the following on the final line:</p><p>IEnumerable&lt;Contact&gt; ListContacts();</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mcnux.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dathom</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Fri, 22 Jul 2011 18:21:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013815</guid><description><![CDATA[ <p>The controller for the contact manager can&#39;t return the view after the validation fails when editing a contact. The view needs the contactToEdit as a parameter to provide the model id required by the page. </p><p></p><p>Nice example of the constructor injection dependency and decorator design patterns here. Great to see how they work with MVC. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/dathom.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by prabhakarcs</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Tue, 20 Sep 2011 07:31:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014223</guid><description><![CDATA[ <p>nice u r tutorial .</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/prabhakarcs.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cassidyd</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Tue, 01 Nov 2011 12:48:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014532</guid><description><![CDATA[ <p>Hi</p><p></p><p>Can you explain why wrapping the modelState in this way is using the decorator pattern please?  Is it not the adapter pattern?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/cassidyd.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Mapletec</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Thu, 17 Nov 2011 03:15:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014642</guid><description><![CDATA[ <p>The decorator pattern here looks strange.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Mapletec.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by reza.omidi</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Wed, 23 Nov 2011 10:39:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014677</guid><description><![CDATA[ <p>Does&#39;t it Make sense to move viewModel validation in this Service Layer  or even Html Helper classes. </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/reza.omidi.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rodchar</title><link>http://asp.net/mvc/tutorials/older-versions/contact-manager/iteration-4-make-the-application-loosely-coupled-cs</link><pubDate>Wed, 06 Feb 2013 16:45:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018359</guid><description><![CDATA[ <p>&quot;If you want to completely decouple the Contact controller class from a particular implementation of the IContactManagerRepository interface then you can take advantage of a framework that supports Dependency Injection such as StructureMap or the Microsoft Entity Framework (MEF). &quot;</p><p></p><p>Isn&#39;t this example using MEF? What other way using MEF could you completely decouple the classes? Please forgive my ignorance.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/rodchar.jpg?forceidenticon=false&amp;dt=635049694200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>