Hii, 之前我有桌子,我设置了一个默认的constrint到我的一个专栏。 所以,如果没有在linq类中提供,那么默认设置为null,即使我在sql表中将我的默认值设置为4, 然后我从dbml中设置该列的属性,将auto autorate设置为true ..它正在工作.. now问题是..从其他方法,当我尝试为该列提供一些其他价值... 它投掷了错误.. 由数据库计算或生成的成员无法更改。 i want在不提供时使用默认值,并且在提供时我的值应该更新
Hii, Previously i had table and i set a default constrint to one of my column . so , if not provided in linq class , then null was setting by default even though i set my default value to 4 in sql table, Then i chnaged the property of that column from dbml , Set autogenrate to true .. and it was working.. now the problem is .. from other method when i try to give some other value for that column ... it is throwing an error .. A member that is computed or generated by the database cannot be changed. i want to use default value when not prvided and my value when procvided it should get updated
推荐答案
更多推荐
如何将默认的constrint值以及manuall更新值设置为linq to sql?
发布评论