LINQ in Action roller

ChangeConflictException when updating row

I have an intermitent problem with Linq in Visual Studio "Orcas" beta 1. I have the following piece of code: Trade editTrade = ( from t in _db.Trades where t.Serial == serial select t).FirstOrDefault(); if (editTrade != null ) { editTrade.DateChecked = DateTime .Now; editTrade.CheckedBy = GetUserName(); _db.SubmitChanges(); } Depending on the recordĀ I will get a System.Data.Linq.ChangeConflictException stating that the row changed or didn't exist. I can't see anything hapenning in the database Read More...
Published Wednesday, May 30, 2007 8:13 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication