<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>The Entity Framework and ASP.NET – Getting Started Part 2</title><link>http://www.asp.net</link><pubDate>Sun, 28 Aug 2011 18:09:46 GMT</pubDate><generator>umbraco</generator><description>Comments for The Entity Framework and ASP.NET – Getting Started Part 2</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33301" rel="self" type="application/rss+xml" /><item><title>Comment Posted by boxers</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Fri, 31 Dec 2010 07:00:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011372</guid><description><![CDATA[ <p>Am getting Could not load type &#39;ContosoUniversity.DAL.SchoolEntities&#39;</p><p>Really not sure on this one at all !! any clues anyone ?</p><p></p><p>Mike</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/boxers.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by boxers</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Fri, 31 Dec 2010 07:27:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011373</guid><description><![CDATA[ <p>checked on source...</p><p>changed from &#39;ContosoUniversity.DAL.SchoolEntities&#39; to &#39;ContosoUniversity.SchoolEntities&#39;</p><p>problem resolved</p><p>hope this helps someone from a wasted hour! :)</p><p></p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/boxers.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by yumyum113</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Thu, 13 Jan 2011 16:05:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011508</guid><description><![CDATA[ <p>It did saved me some time, thanks for sharing.  How did you come up with the right value, I&#39;m thinking it would help for future references :)</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/yumyum113.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Sun, 16 Jan 2011 10:50:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011556</guid><description><![CDATA[ <p>If the .edmx is in the DAL folder, the namespace should include DAL by default, as it does in the downloadable sample project.  If anyone does have the .edmx in the DAL folder but isn&#39;t getting that default namespace value, I would appreciate hearing more about why that is happening, so I can correct the tutorial.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rtpHarry</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Wed, 26 Jan 2011 10:18:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011771</guid><description><![CDATA[ <p>@tdykstra - My guess would be they created the edmx in the wrong place and then dragged it over to the DAL folder.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/rtpHarry.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by evtlucas</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Wed, 26 Jan 2011 17:44:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011785</guid><description><![CDATA[ <p>When I tried to include the column StudentGrades.Count, i got the error System.Web.UI.WebControls.EntityDataSourceWrapper which told me that StudentGrades</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/evtlucas.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by evtlucas</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Wed, 26 Jan 2011 17:46:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011786</guid><description><![CDATA[ <p>When I tried to include the column StudentGrades.Count, i got the error System.Web.UI.WebControls.EntityDataSourceWrapper which told me that StudentGrades doesn&#39;t exist. How can I figure out this issue?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/evtlucas.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Wed, 26 Jan 2011 20:09:47 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011789</guid><description><![CDATA[ <p>@evtlucas</p><p>Please post your question to the EF forum (see the link at the top of the tutorial) along with some more information about the error.  I&#39;ll take a look and if I can&#39;t figure it out maybe someone else can.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by asadazmat</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Mon, 31 Jan 2011 05:12:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011870</guid><description><![CDATA[ <p>Every tutorial deserves 10/10.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/asadazmat.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kamran_saeedi</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Sun, 13 Feb 2011 19:01:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012037</guid><description><![CDATA[ <p>While trying &quot;Adding and Configuring the EntityDataSource Control&quot; section in this tutorial, I got a run-time error as follows:</p><p></p><p>&quot;The defined query has a polymorphic or abstract return type. Define EntityTypeFilter to restrict the query to a single concrete type.&quot;</p><p></p><p>The author must have forgotten to mention that &quot;EntityTypeFilter&quot; should be set to either &quot;Student&quot; or &quot;Instructor&quot;. Am I right?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kamran_saeedi.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Mon, 14 Feb 2011 14:51:55 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012049</guid><description><![CDATA[ <p>Is it possible you did parts of a later tutorial before this one, or are working with downloaded code which has code from a later tutorial?  At this point in the tutorial it should not be necssary to set the entity type filter because Student and Instructor entities don&#39;t exist yet, only Person entities.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kamran_saeedi</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Sat, 19 Feb 2011 05:43:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012137</guid><description><![CDATA[ <p>Yes tdykstra, I did parts of a later tutorial before this one.</p><p></p><p>Thanks a lot.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kamran_saeedi.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by thuff</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Sat, 19 Feb 2011 10:56:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012141</guid><description><![CDATA[ <p>I am having a problem when I try to refresh schema - it reads Could not find the CLR type for &#39;SchoolModel.Person&#39; Please help!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/thuff.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Tue, 22 Feb 2011 23:32:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012188</guid><description><![CDATA[ <p>If you have already switched the data source control over to ContextTypeName, refresh schema won&#39;t work -- that might cause this error.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by arian283</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Thu, 24 Feb 2011 22:46:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012226</guid><description><![CDATA[ <p>FYI&#160;</p><p>I have same problem with DAL.SchoolEntities dispid of having .edmx in the DAL.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/arian283.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by anakopia</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Mon, 14 Mar 2011 04:49:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012453</guid><description><![CDATA[ <p>I have the .edmx in the App_Code folder and getting Could not load type &#39;ContosoUniversity.App_Code.SchoolEntities&#39; error. </p><p></p><p>Please help!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/anakopia.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tashfin.wahid</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Tue, 12 Apr 2011 17:46:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012771</guid><description><![CDATA[ <p>Thanks boxers. That was extremely helpful.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tashfin.wahid.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Thu, 21 Apr 2011 19:01:34 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012924</guid><description><![CDATA[ <p>@anakopia - The easiest solution to having the .edmx in App_Code would be to delete it from there and re-create it in the DAL folder.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by davidicode</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Fri, 27 May 2011 15:00:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013293</guid><description><![CDATA[ <p>When adding the &quot;SchoolEntities&quot; EntityDataSource Control, I continue to receive the error above &quot;unable to load the specified metadata resource&quot; after rebuilding the project.  </p><p></p><p>I don&#39;t understand why this tutorial doesn&#39;t work as written.</p><p></p><p>I&#39;m using Windows 7 professional, 64 bit with Visual Studio 2010 Professional SP1. </p><p></p><p>When I download the source code and compile the page &quot;Students.aspx&quot; runs.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/davidicode.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Tue, 31 May 2011 11:17:31 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013338</guid><description><![CDATA[ <p>@davidicode - The only time I have seen that error is when the project needed to be built. Since the downloadable project works, I suggest using a source code compare tool to find out if there are any differences between the files (including the .edmx) in the project you built from the tutorial and the one in the downloadable project.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ShaunLuttin</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Fri, 03 Jun 2011 19:03:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013386</guid><description><![CDATA[ <p>This tutorial was both clear and motivating. Hooray for Microsoft.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ShaunLuttin.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hareshambaliya</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Thu, 21 Jul 2011 12:48:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013806</guid><description><![CDATA[ <p>love it, courteous</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/hareshambaliya.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mooremedia</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Tue, 09 Aug 2011 15:43:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013940</guid><description><![CDATA[ <p>Regarding &quot;Database Rules to Allow Deletion&quot; - why do we only need to configure 1 of the 3 relationships (for cascade deletes) that the &quot;Person&quot; table has. If a Person is deleted, won&#39;t you need to allow deletions of their OfficeAsignment and Course AS well? </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mooremedia.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Tue, 23 Aug 2011 14:38:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014019</guid><description><![CDATA[ <p>The other relationships are only for instructors; Student rows in the Person table would only have related data in the StudentGrade table.  The purpose here was just to ensure that you could delete students.  If you were building CRUD pages for instructors you might decide to add cascade delete to the other relationships, or you might decide that it would be better to force the deletions of related data to be done manually before deleting an instructor.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by RonnyJ</title><link>http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2</link><pubDate>Sun, 28 Aug 2011 18:09:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014067</guid><description><![CDATA[ <p>I also continued to receive &quot;unable to load the specified metadata resource&quot; even after building the project. I noticed that when answering &quot;No&quot; to putting the file in AppCode the SchooModel.Designer.cs was never created. Maybe this is part of the problem?</p><p></p><p>Finally, after comparing code in the web.config file and the folder structure of the full project, I accepted putting the file into the AppCode folder and everything works fine. I tried moving the SchoolModel.edmx to the DAL folder after it was created in App_Code, but that didn&#39;t work. </p><p></p><p>Hopefully this doesn&#39;t throw me off too much in the next lessons that this isn&#39;t in the right directory.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/RonnyJ.jpg?forceidenticon=false&amp;dt=635050572600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>