<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>Using the Entity Framework and the ObjectDataSource Control, Part 2: Adding a Business Logic Layer and Unit Tests</title><link>http://asp.net</link><pubDate>Mon, 26 Nov 2012 11:51:58 GMT</pubDate><generator>umbraco</generator><description>Comments for Using the Entity Framework and the ObjectDataSource Control, Part 2: Adding a Business Logic Layer and Unit Tests</description><language>en</language><atom:link href="http://asp.net/rss/comments/33225" rel="self" type="application/rss+xml" /><item><title>Comment Posted by frez</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Fri, 04 Feb 2011 05:21:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011925</guid><description><![CDATA[ <p>Why have you implemented a Dispose pattern in SchoolBL without implementing IDisposable?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/frez.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by frez</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Fri, 04 Feb 2011 05:28:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011926</guid><description><![CDATA[ <p>Oops I meant inheriting from IDisposable rather than implemting IDisposabele</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/frez.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Mon, 07 Feb 2011 20:15:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011961</guid><description><![CDATA[ <p>SchoolBL does implement IDisposable -- that is the code from &quot;private bool disposedValue = false&quot; to the end.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by frez</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Tue, 08 Feb 2011 08:23:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011972</guid><description><![CDATA[ <p>What I mean is shouldn&#39;t this line:</p><p></p><p>public class SchoolBL</p><p></p><p>show inheritance from IDisposable, i.e.</p><p></p><p>public class SchoolBL : IDisposable</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/frez.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Wed, 09 Feb 2011 20:03:43 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011995</guid><description><![CDATA[ <p>Oh ... good question, yes it should.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by heyya1961</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Fri, 29 Apr 2011 04:17:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013021</guid><description><![CDATA[ <p>On unittest1, where is the Instructor class defined?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/heyya1961.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by heyya1961</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Fri, 29 Apr 2011 05:50:52 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013022</guid><description><![CDATA[ <p>This second part is getting too difficult to follow through...</p><p></p><p>It reads &quot;In the main project, open the SchoolBL.cs file...&quot;  when was this created?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/heyya1961.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Fri, 29 Apr 2011 16:30:56 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013035</guid><description><![CDATA[ <p>@heyya1961 - The Instructor class was created in the entity data model in the 6th walkthrough (on inheritance) of the first series. It is defined in the main project, and there&#39;s a reference from the test project to the main project.</p><p></p><p>SchoolBL.cs is created at the start of the Creating a Business-Logic Class section in this tutorial.  </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by heyya1961</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Mon, 02 May 2011 06:04:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013046</guid><description><![CDATA[ <p>@TDYKSTRA, I appreciate your response.</p><p></p><p>I do see that in the emdx class, but the complier does not want to see it, but seems to pointing to Instructor class which defines metadata.  </p><p></p><p>The error reads &quot;Error; 1; &#39;ContosoUniversity.Instructor&#39; does not contain a definition for &#39;FirstMidName&#39;  ... File location...&quot;</p><p></p><p>Please advise me where I have messed it up?  Your kind response is appreciated.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/heyya1961.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Wed, 04 May 2011 22:36:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013071</guid><description><![CDATA[ <p>If you open up School.edmx, do you see a property named FirstMidName?  Is it possible you missed a step where the property name was changed from FirstName to FirstMidName (while still mapped to table column named FirstName)?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shriniwasshukla</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Tue, 08 Nov 2011 07:45:56 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014581</guid><description><![CDATA[ <p>its nice tutorial help me a lot. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/shriniwasshukla.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by BjoernUB</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Wed, 02 May 2012 04:53:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015442</guid><description><![CDATA[ <p>The unit test initially fails because the autogenerated DuplicateAdministratorException class does not inherit from Exception. After changing that, the test fails - as expected - due to the missing administrator validation in business logic.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/BjoernUB.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gmeikle</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Sun, 03 Jun 2012 06:42:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015658</guid><description><![CDATA[ <p>I am using this tutorial as a base for a project I am writing.  When I throw the Duplicate Administrator Exception I get an error saying that the exception was unhandled by user code.  It appears that the exception is not being passed by the event argument.  I have declared the method for handling the exception but my code doesn&#39;t get to the OnInserted method.  Any ideas?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/gmeikle.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kent witt-frost</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Wed, 12 Sep 2012 04:40:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016419</guid><description><![CDATA[ <p>Hey</p><p></p><p>Im using framework 4.0, i have a problem with the test class not getting the custom exception class. In fact the test crashes because the exception is unhandled in user code. I looked it over and over and then downloaded the project you made. Same result. Can it be there is there another behaviour for exceptions in 4.5? </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/kent%20witt-frost.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kent witt-frost</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Wed, 12 Sep 2012 07:24:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016426</guid><description><![CDATA[ <p>I found a solution on the interweb. Seems its a &quot;feature&quot; in VS2010. The workaround was using ctrl-f5 to debug or go into tools-options-debugging and click off &quot;enable just my code&quot;</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/kent%20witt-frost.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kevinhagyard</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Fri, 23 Nov 2012 20:18:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016867</guid><description><![CDATA[ <p>I don&#39;t see a &#39;Test Project&#39; template option in order to work thru this tutorial.</p><p></p><p>I am using Visual Web Developer 2010 Express on Windows XP. </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/kevinhagyard.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tdykstra</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control-part-2-adding-a-business-logic-layer-and-unit-tests</link><pubDate>Mon, 26 Nov 2012 11:51:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016880</guid><description><![CDATA[ <p>@kevinhagyard - Thanks for reporting that. This tutorial is not currently scheduled to be updated, but if and when it is we&#39;ll clarify that that functionality is not available in Express editions of VS.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635049028800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>