‘Row not found or changed’ in LINQ to SQL
Ever got the error “Row not found or changed” when you use Linq to sql. I get this error from time to time and i always forget what it means. But now i write it down here so that i wont forget it again. For me this error message has always been caused by a model (dbml) that do not match the real database. It can be such a small difference as a field is nullable in the physical db but it’s not in your model. So just think back what you changed in your model recently and try to find the difference. The best would probably be to upgrade to Entity Framework but i guess that is not possible all the time.
Recent Comments