Error: Row not found or changed

There I was, minding my own business, when I got this message:

Row not found or changed.

Apparently, my LINQ to SQL objects were rebelling, and I needed to put the smackdown on them. (I found not one, but two useful posts on it.) I did that by adding the “UpdateCheck = UpdateCheck.Never” to each of the properties in the designer.cs file, under the dbml file, that declared all the wonderful things inside my object model. So here is an example of one of the properties after I made the change:

[Column(Storage = "_ImageText", UpdateCheck = UpdateCheck.Never, DbType = "NVARCHAR(1000)", CanBeNull = false)]
  public string ImageText
    return this._ImageText;
    if ((this._ImageText != value))
     this._ImageText = value;
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: