<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>Accessing your Model's Data from a Controller</title><link>http://asp.net</link><pubDate>Thu, 21 Oct 2010 00:54:12 GMT</pubDate><generator>umbraco</generator><description>Comments for Accessing your Model's Data from a Controller</description><language>en</language><atom:link href="http://asp.net/rss/comments/33030" rel="self" type="application/rss+xml" /><item><title>Comment Posted by sudipta k paik</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Fri, 03 Sep 2010 02:32:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010107</guid><description><![CDATA[ <p>Yes I do.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/sudipta%20k%20paik.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gperrego</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Fri, 10 Sep 2010 16:38:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010185</guid><description><![CDATA[ <p>This doesn&#39;t work in vs2008, the using statement to include the models doesn&#39;t work.  Are there .net 3.5/vs2008 versions of the tutorials?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/gperrego.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by AbidCharlotte49er</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Sun, 12 Sep 2010 11:45:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010193</guid><description><![CDATA[ <p>Hey gperrego, Make sure you use it this way YourNameSpaceName.Models </p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/AbidCharlotte49er.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gperrego</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Tue, 14 Sep 2010 11:53:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010230</guid><description><![CDATA[ <p>using TMHPEnterpriseDependency.Models worked, thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/gperrego.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kaneko_hoang</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Fri, 17 Sep 2010 14:14:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010273</guid><description><![CDATA[ <p>MoviesEntities db = new MoviesEntities();</p><p>I don&#39;t understand??? Please help me </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kaneko_hoang.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by itiwant</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Sat, 18 Sep 2010 13:24:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010285</guid><description><![CDATA[ <p>oh,I have same problem with kaneko hoang</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/itiwant.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by itiwant</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Sat, 18 Sep 2010 13:50:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010286</guid><description><![CDATA[ <p>try again step add ADO.NET Entity to Data... is OK!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/itiwant.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by RodWittmier</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Sat, 18 Sep 2010 22:52:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010290</guid><description><![CDATA[ <p>If one ends up with an empty Index.aspx page, you missed the step to select &quot;List&quot; from the “View content&quot; dropdown.  Simply delete the page and try the wizard again.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/RodWittmier.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by aspbot</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Wed, 22 Sep 2010 14:51:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010346</guid><description><![CDATA[ <p>Before writing </p><p>MoviesEntities db = new MoviesEntities();</p><p>add the namespace specified in your Movies.Designer.cs page. If you look at that page, the namespace is Movies.Models (if you have named everything as per the tutorial). Now in your MoviesController.cs page add the namespace.</p><p></p><p>using Movies.Models;</p><p></p><p>Hope this helps.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/aspbot.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jammoblammo</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Sun, 26 Sep 2010 15:46:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010396</guid><description><![CDATA[ <p>Thanks aspbot, I had this problem too.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jammoblammo.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Rogue Storm</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Tue, 28 Sep 2010 05:26:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010415</guid><description><![CDATA[ <p>Can you tell me where MoviesEntities comes from? Is it a &quot;It just does it&quot; scenario or have I missed something? The methods within it are proving elusive too, any help appreciated.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Rogue%20Storm.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by HolaAsp</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Wed, 29 Sep 2010 12:13:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010436</guid><description><![CDATA[ <p>Roque, I think MoviesEntities comes from when you create your ADO.NET Entity Data Model (in the previous page). It lets you connect to and manipulate your Movies database.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/HolaAsp.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by HolaAsp</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Wed, 29 Sep 2010 12:17:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010437</guid><description><![CDATA[ <p>kaneko and itiwant: &quot;MoviesEntities db = new MoviesEntities();&quot; means you are creating a new object/instance, named &quot;db&quot;, of the class MoviesEntities (which is the Entity Model, ADO.NET, you created in the previous page). Now you can use &quot;db&quot; when you want to connect to your database and manipulate it.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/HolaAsp.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by benpc</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Wed, 29 Sep 2010 19:03:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010441</guid><description><![CDATA[ <p>Please help:</p><p>Why I got this error when going to <a rel="nofollow" href="http://localhost:*****/movies:" target="_blank">localhost</a></p><p>Object reference not set to an instance of an object. </p><p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p><p></p><p>Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.</p><p></p><p>Source Error: </p><p></p><p></p><p>Line 15:             &lt;th&gt;Price&lt;/th&gt;</p><p>Line 16:         &lt;/tr&gt;</p><p>Line 17:         &lt;% foreach (var item in Model){ %&gt;</p><p></p><p> </p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/benpc.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by zhbingo</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Wed, 29 Sep 2010 22:59:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010442</guid><description><![CDATA[ <p>please help,i had a problem:</p><p>when i add a view for the index method,the Moive.Models.Movie item is not in the view data calss dropdown menu and the view content dropdown menu is not usable</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/zhbingo.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by yipyipdog</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Thu, 30 Sep 2010 21:38:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010455</guid><description><![CDATA[ <p>zhbingo - u need to run the app first (compile it) then try adding it again and the movies.models.movie will be in the drop down menu this time </p><p></p><p>if it doesnt run but u get an error then u need to add </p><p></p><p>using Movies.Models;</p><p></p><p>to the list of namespaces like this:</p><p></p><p>using System;</p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p>using System.Web;</p><p>using System.Web.Mvc;</p><p>using Movies.Models;</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/yipyipdog.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by zhbingo</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Thu, 30 Sep 2010 23:05:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010456</guid><description><![CDATA[ <p>yipyipdog-thanks,using Movies.Models worked</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/zhbingo.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by raj2k3e</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Sun, 03 Oct 2010 16:29:32 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010484</guid><description><![CDATA[ <p>when i add a view for the index method,the Moive.Models.Movie item is not in the view data class dropdown menu and the view content dropdown menu is not usable.</p><p>I think steps to create Movies Model are missing. because there is no folder named Movies in project.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/raj2k3e.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by raj2k3e</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Thu, 07 Oct 2010 23:02:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010546</guid><description><![CDATA[ <p>Where do we create model Movie?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/raj2k3e.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by slowmotion</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Fri, 08 Oct 2010 05:18:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010548</guid><description><![CDATA[ <p>I discovered at list 2 problems. One was to create the view. Movies.Models.Movie it&#39;s impossible instead created Movies.Movie.</p><p></p><p>And in the Controller MoviesController the code for me had a problem in the LINQ expression:</p><p></p><p>Dim movies = From m In db.Movie (our table is named Movie not Movies)</p><p></p><p>Cumps..</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/slowmotion.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by slowmotion</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Fri, 08 Oct 2010 05:57:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010549</guid><description><![CDATA[ <p>Hi,</p><p>I notice more problems. The code in the index file for the Movies view features &lt;td&gt;Rating&lt;td&gt; field that doesn&#39;t exist. And it misses the &quot;ID&quot; field that seems to appear int the browser.</p><p></p><p>I&#39;m starting to think that the author of the tutorial is trying to see if wee are with attention. </p><p></p><p>Don&#39;t get me wrong but...</p><p>I&#39;m trying to LEARN here. Can U the AUTHOR follow the Tutorial to fix the problems. Just follow your own tutorial.</p><p></p><p>Tkx in advance.  </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/slowmotion.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dehnel</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Sat, 09 Oct 2010 18:50:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010562</guid><description><![CDATA[ <p>Ratings was not in the database when we first created it.  So I ran into errors.  I was not able to add it to the database without runing into an error that require me to try Tools | Options | expanding Database Tools and clearing &quot;Prevent saving changes that require table re-creation&quot; however this did not work either.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/dehnel.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by justmeinal</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Tue, 19 Oct 2010 16:35:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010677</guid><description><![CDATA[ <p>After building this controller, is there a way to add page view to the MVC output page? It works well with 4 entries, however what about 40 ... 400 ... 4000?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/justmeinal.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by merin</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Wed, 20 Oct 2010 22:49:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010686</guid><description><![CDATA[ <p>I got an error in the LINQ statement. &#39;Movie.Models.MoviesEntities&#39; does not contain a definition for &#39;Movies&#39; and no extension method &#39;Movies&#39; accepting a first argument of type &#39;Movie.Models.MoviesEntities&#39; could be found (are you missing a using directive or an assembly reference?)</p><p>Help please</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/merin.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by merinnakarmi</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part5</link><pubDate>Thu, 21 Oct 2010 00:54:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010688</guid><description><![CDATA[ <p>The LINQ problem is solved. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/merinnakarmi.jpg?forceidenticon=false&amp;dt=635047849800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>