LINQ to SQL disconnected updating object from different data context
问题 http://geekswithblogs.net/michelotti/archive/2007/12/17/117791.aspx I'm using ASP.NET with C# and trying to use linq to sql to update a data context as exhibited on the blog linked above. I created the timestamp field in the table just as stated and am using the following method: private void updateRecord(TableName updatedRecord) { context db = new context(); db.TableName.Attach(updatedRecord,true); db.SubmitChanges(); } My question is, are you supposed to assign the timeStamp field to