<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Blinq Preview</title><link>http://forums.asp.net/1076.aspx</link><description>Blinq is a tool for generating ASP.NET websites for displaying, creating, and manipulating data based on database schema.  You can provide feedback and ask questions about the Blinq preview in this forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: AdventureWorks Database - error updating an existing row.</title><link>http://forums.asp.net/thread/2277172.aspx</link><pubDate>Fri, 04 Apr 2008 16:35:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2277172</guid><dc:creator>Maxer_Ars</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2277172.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1076&amp;PostID=2277172</wfw:commentRss><description>&lt;p&gt;The dateformat string solution, are there other ways to deal witht that (other than telling it to NEVER participate in optimistic concurrency)?&lt;/p&gt;
&lt;p&gt;I mean to say, how can that be displayed to the user in a way that is less &amp;quot;awful&amp;quot; for them to look at?&lt;/p&gt;
&lt;p&gt;Could it be tied into some sort of date/time picker control so the user never has to see that?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;EDIT:&amp;nbsp; What if a datetime stamp was used (added as a whole new field) could optimistic concurrency use that field and then all the other fields would be set to NEVER participate so you&amp;#39;d have the best of both worlds?&lt;/p&gt;</description></item><item><title>Re: AdventureWorks Database - error updating an existing row.</title><link>http://forums.asp.net/thread/1387343.aspx</link><pubDate>Fri, 01 Sep 2006 17:10:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1387343</guid><dc:creator>phuff</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1387343.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1076&amp;PostID=1387343</wfw:commentRss><description>&lt;p&gt;This is because the ModifiedDate property is a high-precision date time field.&amp;nbsp; From the Readme:&lt;/p&gt;&lt;p class="BulletedList1" style="margin:6pt 0in 6pt 0.25in;"&gt;&lt;span style="font-family:Symbol;"&gt;&lt;span&gt;&amp;middot;&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana"&gt;&lt;span class="Bold"&gt;&lt;strong&gt;Tables with columns of type DateTime with higher precision than seconds do not update correctly.&lt;/strong&gt;&lt;/span&gt; Blinq creates &lt;span class="LanguageKeyword"&gt;&lt;strong&gt;BoundField&lt;/strong&gt;&lt;/span&gt; objects for &lt;span class="LanguageKeyword"&gt;&lt;strong&gt;DateTime&lt;/strong&gt;&lt;/span&gt; fields that do not contain precision beyond seconds, so updates with &lt;span class="LanguageKeyword"&gt;&lt;strong&gt;DateTime&lt;/strong&gt;&lt;/span&gt; fields with high precision that participate in optimistic concurrency fail. To fix this, do one of the following:&lt;/font&gt;&lt;/p&gt;&lt;p class="BulletedList2" style="margin:6pt 0in 6pt 0.5in;"&gt;&lt;span style="font-family:'Courier New';"&gt;&lt;span&gt;o&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana"&gt;Change the precision displayed by the &lt;span class="LanguageKeyword"&gt;&lt;strong&gt;BoundField&lt;/strong&gt;&lt;/span&gt; object by setting &lt;/font&gt;&lt;span class="Code"&gt;&lt;font face="Courier New"&gt;DataFormatString=&amp;quot;{0:o}&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;font face="Verdana"&gt;, &lt;/font&gt;&lt;span class="Code"&gt;&lt;font face="Courier New"&gt;HtmlEncode=false&lt;/font&gt;&lt;/span&gt;&lt;font face="Verdana"&gt;, and &lt;/font&gt;&lt;span class="Code"&gt;&lt;font face="Courier New"&gt;ApplyFormatInEditMode=true&lt;/font&gt;&lt;/span&gt;&lt;font face="Verdana"&gt;.&lt;/font&gt;&lt;/p&gt;&lt;p class="BulletedList2" style="margin:6pt 0in 6pt 0.5in;"&gt;&lt;span style="font-family:'Courier New';"&gt;&lt;span&gt;o&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana"&gt;Designate the &lt;span class="LanguageKeyword"&gt;&lt;strong&gt;DateTime&lt;/strong&gt;&lt;/span&gt; field as never participating in optimistic concurrency. See &amp;quot;Changing a Field&amp;rsquo;s Update Mode&amp;quot; earlier in this document to change the update mode for this column. Use this option carefully&amp;mdash;removing this column from participating in optimistic concurrency will allow overwrites of the value to succeed even if the database&amp;rsquo;s value has been changed.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>AdventureWorks Database - error updating an existing row.</title><link>http://forums.asp.net/thread/1387132.aspx</link><pubDate>Fri, 01 Sep 2006 13:44:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1387132</guid><dc:creator>johnhbarrett</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1387132.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1076&amp;PostID=1387132</wfw:commentRss><description>&lt;p&gt;To reproduce thsi simple install the Aventure works database, run blinq, go to &amp;#39;ScrapReasons table, edit row 7, update....kabam!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any ideas???&lt;/p&gt;&lt;p&gt;Guess&amp;nbsp;some testing needed against other databases (besides Northwind) ?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Row not found or changed. &lt;br /&gt;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. &lt;/p&gt;&lt;p&gt;Exception Details: System.Data.DLinq.OptimisticConcurrencyException: Row not found or changed.&lt;/p&gt;&lt;p&gt;Source Error: &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Line 1091:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; original_x.Name = x.Name;&lt;br /&gt;Line 1092:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; original_x.ModifiedDate = x.ModifiedDate;&lt;br /&gt;Line 1093:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; db.SubmitChanges();&lt;br /&gt;Line 1094:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1;&lt;br /&gt;Line 1095:&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Source File: c:\blinqtest\App_Code\StaticMethods.cs&amp;nbsp;&amp;nbsp;&amp;nbsp; Line: 1093 &lt;/p&gt;&lt;p&gt;Stack Trace: &lt;/p&gt;&lt;p&gt;&lt;br /&gt;[OptimisticConcurrencyException: Row not found or changed.]&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Data.DLinq.ChangeProcessor.ThrowOptimisticConcurrencyException(List`1 failedUpdates, Int32 totalUpdatesAttempted) +182&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Data.DLinq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +620&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Data.DLinq.DataContext.SubmitChanges(ConflictMode failureMode) +264&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Data.DLinq.DataContext.SubmitChanges() +25&lt;br /&gt;&amp;nbsp;&amp;nbsp; ScrapReason.Update(ScrapReason original_x, ScrapReason x) in c:\blinqtest\App_Code\StaticMethods.cs:1093&lt;/p&gt;&lt;p&gt;[TargetInvocationException: Exception has been thrown by the target of an invocation.]&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp;amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +358&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +17&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object&amp;amp; instance) +676&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method) +60&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.ObjectDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +2319&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +179&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.GridView.HandleUpdate(GridViewRow row, Int32 rowIndex, Boolean causesValidation) +1138&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +835&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +162&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +118&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +107&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +175&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +244&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3839&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>