标签: linq-to-sql
为了插入一个具有默认值的行,我在linq-to-sql dbml中设置自动生成值true,但是如果我尝试更新,此设置会生成错误同一列。错误是:A member that is computed or generated by the database cannot be changed.我已经尝试了各种组合以使其正常工作。就像将自动生成的值设置为false并自动同步到OnInsert一样。但它们都没有奏效。有没有办法让插入和更新都工作?
linq-to-sql
true
A member that is computed or generated by the database cannot be changed.
false
OnInsert