In order to insert a row which has a default value I've set in the linq-to-sql
dbml the auto generate values to true
, but this setting generates an error if I try to update the same column. The error is: A member that is computed or generated by the database cannot be changed.
I've tried all sorts of combinations in order to make it work. Like setting the auto generated values to false
and auto sync to OnInsert
. But none of them worked. Is there any way to make both, insert and update, work?
Asked
Active
Viewed 466 times
4

Rocshy
- 3,391
- 11
- 39
- 56
-
Duplicate of: http://stackoverflow.com/q/1120858/532498 ? – Pleun Nov 04 '14 at 22:15
-
1Not a duplicate, this thread is about the update query, the other is about the insert query. – Amine Zaine May 11 '15 at 10:49
-
Sir, did you find a solution? Obviously, it is Linq-to-SQL bug ... – Denis Dec 10 '15 at 22:16