<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>Creating Model Classes with LINQ to SQL</title><link>http://www.asp.net</link><pubDate>Mon, 07 Nov 2011 23:51:00 GMT</pubDate><generator>umbraco</generator><description>Comments for Creating Model Classes with LINQ to SQL</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/27578" rel="self" type="application/rss+xml" /><item><title>Comment Posted by stealthypancake</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Sat, 03 Jul 2010 14:09:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009304</guid><description><![CDATA[ <p>This tutorial really helped me get started using the repository scheme. I found it useful to use a more templated version of the ListAll. This version ↓ returns a list for any table T passed to it.</p><p></p><p>        public List&lt;T&gt; ListAll&lt;T&gt;() where T : class</p><p>        {</p><p>            return(_dataContext.GetTable&lt;T&gt;().ToList());</p><p>        }</p><p></p><p>I hope it helps someone else.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/stealthypancake.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by flyinhawaiian84</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Thu, 15 Jul 2010 10:35:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009464</guid><description><![CDATA[ <p>Would be nice to have all the tutorials available in PDF.  Don&#39;t understand why some have PDF and some dont?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/flyinhawaiian84.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jkumarmcse</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Tue, 27 Jul 2010 05:23:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009637</guid><description><![CDATA[ <p>Example of Repository Pattern is nice</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/jkumarmcse.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by talktoanil</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Sat, 04 Sep 2010 13:46:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010122</guid><description><![CDATA[ <p>gr8..this helped a lot</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/talktoanil.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by HemaSasi</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Fri, 12 Nov 2010 14:15:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010930</guid><description><![CDATA[ <p>really very nice tutorial...Thanks a lottttttttt</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/HemaSasi.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pradip.bobhate</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Thu, 02 Dec 2010 08:01:38 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011113</guid><description><![CDATA[ <p>I liked Repository pattern. Very nice :)</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/pradip.bobhate.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by picapau</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Mon, 27 Dec 2010 17:18:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011326</guid><description><![CDATA[ <p>This sample is just for beginning! I can&#39;t decide if a programming language is good only with a &quot;Hello World!&quot; sample. Where can I get a useful, complete and reallistic MVC sample, with many-to-may table relations? Why don&#39;t you improve the example above adding movies with many artits and artist with many movies? This will help me in my decision to move to MVC from Web Forms.</p><p>Thanks!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/picapau.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by DaveK8746</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Thu, 13 Jan 2011 18:01:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011511</guid><description><![CDATA[ <p>It seems like this lesson ended too abruptly.&#160;This lesson ended without showing how to pass the repository object to the constructor. It would have been nice to see how to load the data onto the form. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/DaveK8746.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by CarlosT</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Fri, 21 Jan 2011 22:29:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011692</guid><description><![CDATA[ <p>I&#39;m getting the following &quot;Inconsistent accessibility&quot; error when I try to build with the MoviesController as listed above:</p><p></p><p>parameter type &#39;MvcMovie.Models.IMovieRepository&#39; is less accessible than method &#39;MvcMovie.Controllers.MoviesController.MoviesController(MvcMovie.Models.IMovieRepository)&#39;</p><p></p><p>Does anyone know what might be the problem?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/CarlosT.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by CarlosT</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Fri, 21 Jan 2011 22:32:26 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011693</guid><description><![CDATA[ <p>Figured it out.  I had forgotten to declare IMovieRepository as public.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/CarlosT.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gyana.ojha</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Mon, 29 Aug 2011 04:41:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014073</guid><description><![CDATA[ <p><a rel="nofollow" href="http://www.google.com" target="_blank">www.google.com</a> </p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/gyana.ojha.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dipen bhavsar</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Sat, 17 Sep 2011 03:36:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014209</guid><description><![CDATA[ <p>I am having a Problem while updating a Data in the WebForm in mvc Razor. My Data Does not Updated In the Table, While i am using the method _InvoiceContext.SubmitChanges().</p><p></p><p>Please Help me for this.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/dipen%20bhavsar.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ishthi83</title><link>http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs</link><pubDate>Mon, 07 Nov 2011 23:51:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014577</guid><description><![CDATA[ <p>Hi,</p><p></p><p>I need to know how to insert into db, can you provide some help?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ishthi83.jpg?forceidenticon=false&amp;dt=635046711000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>