<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 1: Getting Started</title><link>http://asp.net</link><pubDate>Tue, 20 Nov 2012 16:39:01 GMT</pubDate><generator>umbraco</generator><description>Comments for Using the Entity Framework and the ObjectDataSource Control, Part 1: Getting Started</description><language>en</language><atom:link href="http://asp.net/rss/comments/33224" rel="self" type="application/rss+xml" /><item><title>Comment Posted by kouwen</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Mon, 09 May 2011 15:43:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013114</guid><description><![CDATA[ <p>We have been having this discussion today. Some people say EF combines the BLL and DAL thus no point of developing them separately(Double code maybe). I&#39;m getting more puzzled. Any suggestions ?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kouwen.jpg?forceidenticon=false&amp;dt=635050911600000000&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-1-getting-started</link><pubDate>Tue, 10 May 2011 17:29:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013125</guid><description><![CDATA[ <p>The Entity Framework provides a framework for data access -- it doesn&#39;t have any business logic and so it can&#39;t in itself combine the business logic and data access layers.  It would be more accurate to think of it as a key part of the data access layer.  Not everyone means the same thing by BLL and DAL, however, or draw the boundary lines between them in the same way. You could certainly combine your BLL and DAL, and the Entity Framework could be a part of that combination.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by KaNanga</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Wed, 06 Jul 2011 07:28:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013703</guid><description><![CDATA[ <p>Thanks for the tutorial... great learning tool!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/KaNanga.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by haos11</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Fri, 26 Aug 2011 18:18:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014060</guid><description><![CDATA[ <p>In Repository class you didn&#39;t implement destructor (~SchoolRepository), so I think that GC.SuppressFinalize and &#39;bool disposing&#39; are unnecessary. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/haos11.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by antonioplais</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Fri, 18 Nov 2011 06:41:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014653</guid><description><![CDATA[ <p>I&#39;m trying to reproduce this tutorial and when I bind the gridview to the repository class (ienumerable) I receive an error message stating that the datasource should implement iQueryableDatasource.</p><p></p><p>What&#39;s the trick? (using VWD 2010 SP1 on Windows 7 Ultimate SP1)</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/antonioplais.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by antonioplais</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Fri, 18 Nov 2011 07:08:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014654</guid><description><![CDATA[ <p>Sorry, I got my mistake! I had a QueryExtender attached to the Datasource and that caused the error. Everything working fine now!</p><p>BTW, congratulations for the fantastic tutorial.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/antonioplais.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tayho</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Tue, 28 Feb 2012 00:01:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014959</guid><description><![CDATA[ <p>Thanks for this helpful tutorial. We had a problem with entering a start date</p><p>in the Australian date format (i.e. dd/MM/yyyy) in the DeparmentsAdd.aspx page</p><p>and the Departments.aspx page.</p><p>The error message is: &quot;Cannot convert value of parameter &#39;StartDate&#39; from</p><p>&#39;System.String&#39; to &#39;System.Date&#39; &quot;. I searched on the internet but could not find</p><p>a solution for this. Any ideas? Thank you again.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tayho.jpg?forceidenticon=false&amp;dt=635050911600000000&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-1-getting-started</link><pubDate>Fri, 09 Mar 2012 14:56:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015078</guid><description><![CDATA[ <p>@tayho - I recommend trying the ASP.NET forum or StackOverflow. If you decide to try StackOverflow, I&#39;d appreciate hearing what the answer is so I can incorporate it into the next release of the tutorial (if you use the forum, I&#39;ll get the thread automatically).</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Mugnaio</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Tue, 26 Jun 2012 10:03:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015853</guid><description><![CDATA[ <p>When I try to Edit and Update i get an error about decilmal format on Budget: my currency is euro, decimal format is with the &quot;,&quot;. If I Update for example Mathematics with no modification i get an exception: Exception: 250000,0000 is not a valid value for Decimal. If i try to subst the &quot;,&quot;  with the &quot;.&quot; I get no exception but &quot;The field Budget must be a valid decimal.&quot; from the validation control.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Mugnaio.jpg?forceidenticon=false&amp;dt=635050911600000000&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-1-getting-started</link><pubDate>Thu, 28 Jun 2012 19:39:38 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015877</guid><description><![CDATA[ <p>@Mugnaio - Have you downloaded the completed project and tried that? If it works for you, you can compare that with what you created by following the tutorial to see what&#39;s different. The error with a comma is expected, but replacing the &quot;,&quot; with a &quot;.&quot; works in the downloaded project.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tdykstra.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cpzup</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Tue, 25 Sep 2012 11:30:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016508</guid><description><![CDATA[ <p>I have a question on edit/delete.  I am using a similar structure with different names.  I have two entities named &quot;UncertaintyFamily&quot; and &quot;Classification&quot;.  Assume that the entity keys and relationships are correct.  All code is identical to this example except the names of my entities and attributes are different.  I am using Bind(&quot;&quot;) and bound fields instead of Eval(&quot;&quot;) and dynamic fields.</p><p></p><p>Insert and Select both work perfectly.</p><p></p><p>When I try to edit a row, it gives me an error in the repository:</p><p>m_Context.Attach(originalFamily); -- &quot;an object with a null entitykey value cannot be attached to an object contex&quot;.  </p><p></p><p>*When hovering over the new and original parameters in the Update method in the repository, all fields, including the ID field, are populated and correct.</p><p>*The EntityKey is set to True in the model for both the parent and child entities.</p><p>*The DataKeyNames for the grid is set to the ID of the UncertaintyFamily table.</p><p>*I am using a label to bind the Classification.Abbreviation while viewing and a dropbox like in the example to edit.</p><p>*Delete stopped working when I added the ConflictDetection parameter in the ODS saying it could not find a property named &quot;Classification.Abbreviation&quot; on the type specified by the DataObjectTypeName property in ObjectDataSource &quot;odsUncertaintyFamilies&quot; (which is populating the grid).</p><p></p><p>Can someone please help?  Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cpzup.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cpzup</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Tue, 25 Sep 2012 12:03:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016509</guid><description><![CDATA[ <p>Ah, got it.  </p><p></p><p>*I changed Bind(&quot;&quot;) to Eval(&quot;&quot;) in the label control and that fixed Delete(). </p><p>*I changed m_Context.Attach(originalFamily) to m_Context.UncertaintyFamilies.Attach(originalFamily) in the update method and update works.  </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cpzup.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mhaltamimi</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Thu, 11 Oct 2012 07:46:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016603</guid><description><![CDATA[ <p>thank you for this great tutorial</p><p></p><p>you know... i prefer to do the following in DepartmentsDetailsView_ItemInserting in order to get the Instructor Id, its just one step oen more easy :D</p><p></p><p>DropDownList InstructorsDropDownList = DepartmentsDetailsView.Rows[0].FindControl(&quot;InstructorsDropDownList&quot;) as DropDownList;</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mhaltamimi.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by thomastwosome</title><link>http://asp.net/web-forms/tutorials/continuing-with-ef/using-the-entity-framework-and-the-objectdatasource-control,-part-1-getting-started</link><pubDate>Tue, 20 Nov 2012 16:39:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016840</guid><description><![CDATA[ <p>I would love to see a VB version of this tutorial!  Also a printable PDF (like many of the other tutorials on this site have) would be helpful.</p><p></p><p>Wonderful, helpful learning tool.  Thank you for the time you took to create these tutorials!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/thomastwosome.jpg?forceidenticon=false&amp;dt=635050911600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>