<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>[How Do I:] LINQ to SQL: Updating the Database</title><link>http://asp.net</link><pubDate>Tue, 24 Feb 2009 12:15:41 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:] LINQ to SQL: Updating the Database</description><language>en</language><atom:link href="http://asp.net/rss/comments/37516" rel="self" type="application/rss+xml" /><item><title>Comment Posted by ShaunO</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Wed, 26 Mar 2008 22:11:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006711</guid><description><![CDATA[ <p>Nice video, bonus with your kid walking in asking to use your computer :D!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ShaunO.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ramah</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Thu, 27 Mar 2008 04:53:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006712</guid><description><![CDATA[ <p>nice video. thank you</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ramah.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rtisserand</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Thu, 27 Mar 2008 10:56:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006713</guid><description><![CDATA[ <p>Would it be possible to get a VB version of this video?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/rtisserand.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dotNetNewbie</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Mon, 21 Apr 2008 06:11:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006714</guid><description><![CDATA[ <p>Hi Scott, </p> <p>Thank you for your great video. I&#39;m following each one of them to start learning Linq.</p> <p>In this video here, when you extend the class Order(public partial class Order) the intellisense doesn&#39;t work, and the namespace System.Data.Linq.ChangeAction is not recognized. It compiles right but qhen i run the project gives the following error message: </p> <p>CS0234: The type or namespace name &#39;Linq&#39; does not exist in the namespace &#39;System.Data&#39; (are you missing an assembly reference?)</p> <p>However, in the NorthWind.designer.cs the method recognizes the namespace...</p> <p>partial void OnValidate(System.Data.Linq.ChangeAction action);</p> <p>Can you tell me of something is missing?</p> <p>Best regards,</p> <p>Manuel</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/dotNetNewbie.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kteepl</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Fri, 06 Jun 2008 11:24:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006715</guid><description><![CDATA[ <p>VB PLEASE!!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/kteepl.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by McGuire</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Fri, 06 Jun 2008 17:50:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006716</guid><description><![CDATA[ <p>I agree. &#160;Will the next several be done in VB at some point?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/McGuire.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vasireddybharath</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Mon, 23 Jun 2008 22:28:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006717</guid><description><![CDATA[ <p>This is very nice to have. Its just like readymade....</p> <p>Good stufffffffffffff......</p> <p>Thnks </p> <p>Bharath Reddy VasiReddy</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/vasireddybharath.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cv_vikram</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Thu, 14 Aug 2008 18:26:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006720</guid><description><![CDATA[ <p>thanks....</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djdenni</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Tue, 19 Aug 2008 18:20:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006721</guid><description><![CDATA[ <p>Does anybody know how to convert the following code to VB?</p> <p>var r = from p in db.Products</p> <p> &#160; &#160; &#160; &#160;where p.UnitPrice &gt; 15 &amp;&amp;</p> <p> &#160; &#160; &#160; &#160;p.Order_Details.Sum(x =&gt; x.Quantity) &lt; 200</p> <p> &#160; &#160; &#160; &#160;select p;</p> <p>Thanks, Dave</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/djdenni.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by S.Pirashanth</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Thu, 28 Aug 2008 03:00:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006722</guid><description><![CDATA[ <p>Many thanks for the great videos</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/S.Pirashanth.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by D' Polygon</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Thu, 11 Sep 2008 19:25:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006723</guid><description><![CDATA[ <p>Hello I would really be happy to have this video in VB pls!!!</p> <p>Thanks so much for the videos you shared.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/D'%20Polygon.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vpmragu</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Mon, 22 Sep 2008 09:07:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006724</guid><description><![CDATA[ <p>thank you so much for this video.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/vpmragu.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by senfo</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Mon, 22 Sep 2008 19:02:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006725</guid><description><![CDATA[ <p>So I didn&#39;t really like this one (no offense). &#160;That wasn&#39;t a very common update scenario. &#160;How about something a little more common? &#160;For example, open a Product in an Edit page and UPDATE any changes in the database.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/senfo.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sameeralibhai</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Fri, 03 Oct 2008 14:45:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006726</guid><description><![CDATA[ <p>That was hilarious (at the end!!) :) Those of us who have kids know how that feels</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/sameeralibhai.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gatehyperion</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Tue, 07 Oct 2008 15:15:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006727</guid><description><![CDATA[ <p>Excellent video! &#160;Nice added touch with the sql profiling and perfect comic relief at the end! That was just too dang funny! Since you have that cool voice can you say &quot;I am your father luke&quot; at the end of your next video?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/gatehyperion.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ASeventhSign</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Thu, 09 Oct 2008 16:26:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006728</guid><description><![CDATA[ <p>Love the video...</p> <p>When the example tried to delete the &#39;lame&#39; products, I get an Exception:</p> <p>The DELETE statement conflicted with the REFERENCE constraint &quot;FK_Order_Details_Products&quot;. The conflict occurred in database &quot;Northwind&quot;, table &quot;dbo.Order Details&quot;, column &#39;ProductID&#39;.</p> <p>The statement has been terminated.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ASeventhSign.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by PietS</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Tue, 14 Oct 2008 06:33:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006729</guid><description><![CDATA[ <p>I had the same problem as ASeventhSign. </p> <p>Did we do something wrong? :S</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/PietS.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by radu_m</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Mon, 20 Oct 2008 21:48:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006730</guid><description><![CDATA[ <p>This VB Code worked fine for me, i&#39;m showing the TransactionScope to but if you want to have your changes permanently than remove TransactionScope wrapper.</p> <p>Protected Sub btLame_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btLame.Click</p> <p> &#160; &#160; &#160; &#160;Using ts As Transactions.TransactionScope = New Transactions.TransactionScope()</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;Dim NW As New NorthwindDataContext</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;Dim r = From p In NW.Products _</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Where p.UnitPrice &gt; 15 And _</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;(Aggregate ordQunat In p.Order_Details _</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Into Sum(ordQunat.Quantity)) &lt; 200</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;For Each p As Product In r</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;p.ReorderLevel = 0</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;Next</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;NW.SubmitChanges()</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;GridView1.DataSource = r</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;GridView1.DataBind()</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;Transactions.CommittableTransaction.Current.Rollback()</p> <p> &#160; &#160; &#160; &#160;End Using</p> <p> &#160; &#160;End Sub</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/radu_m.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Fri, 24 Oct 2008 06:15:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006731</guid><description><![CDATA[ <p>Thanks !J&#235;r&#235;j&#235;f!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shinji14</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Wed, 12 Nov 2008 13:45:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006732</guid><description><![CDATA[ <p>Same as ASeventhSign and Piets, this code is supposse to delete also the referencs in orderdetails table?, because is throwing an exception about a foreign key.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/shinji14.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shinji14</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Thu, 13 Nov 2008 02:56:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006733</guid><description><![CDATA[ <p>well i dont sure if this video was created with a ctp version and this version supported cascade delete, anyway, to solve this activate the cascade option in sql server.</p> <p>(in &quot;foreign key relationship&quot; window under &quot;insert and update specification&quot; change delete rule to &quot;cascade&quot;)</p> <p>che sos muy comillero xD</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/shinji14.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tkfi</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Wed, 03 Dec 2008 21:27:52 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006734</guid><description><![CDATA[ <p>I see now, that why you sound so cool, hahaha</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/tkfi.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by nrd1hxw</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Fri, 26 Dec 2008 14:40:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006735</guid><description><![CDATA[ <p>Hi Scott, </p> <p>Thank you for your great video. I follow your videos to learn Linq. But I have somw problem as ASeventhSign, What I can do for this? &#160;Can I get your answer for him?</p> <p>My errors as:</p> <p>&quot;The DELETE statement conflicted with the REFERENCE constraint &quot;FK_Order_Details_Products&quot;. The conflict occurred in database &quot;Northwind&quot;, table &quot;dbo.Order Details&quot;, column &#39;ProductID&#39;. &#160;The statement has been terminated. &quot;</p> <p>Also how can &#160;using &quot;SQL Server Profiler as you show us in later Video to catch the regual sql commend? for &#160;db.Products.DeleteAllOnSubmit(r)? &#160;</p> <p>Thanks</p> <p>Heng Wang</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/nrd1hxw.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dotnetruler</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Tue, 06 Jan 2009 16:49:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006736</guid><description><![CDATA[ <p>Very good Tutorial... but it would be good if you can spend some more time at the aggregate</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/dotnetruler.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by meoden8x</title><link>http://asp.net/web-forms/videos/data-access/how-do-i-with-linq/how-do-i-linq-to-sql-updating-the-database</link><pubDate>Tue, 24 Feb 2009 12:15:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006737</guid><description><![CDATA[ <p>When i &#39;ve clicked on &#39;Lame&#39; button, i encountered &quot;DELETE statement conflicted with COLUMN REFERENCE constraint &#39;FK_Order_Details_Products&#39;. The conflict occurred in database &#39;Northwind&#39;, table &#39;Order Details&#39;, column &#39;ProductID&#39;.</p> <p>The statement has been terminated.&quot; error. Please help me and sorry about my English.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/meoden8x.jpg?forceidenticon=false&amp;dt=635045294400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>