使用WCF服务错误更新数据网格中的主键 [英] update primary key in data grid with WCF service error

查看:76
本文介绍了使用WCF服务错误更新数据网格中的主键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在使用Silverlight时遇到问题
使用RIA WCF服务创建项目时
我可以在网格中更新,但尝试更新PK
给我错误
是只读的
关于那个的任何想法
谢谢您的帮助.

hi everyone

i have problems with silverlight
when create project with RIA WCF service
i can update in grid but when try update PK
give me error
is read only
any idea about that
thanks for any help

推荐答案

如果您在其上设置了IDENTITY,则主键会自动生成,因此是只读的.
Primary keys are automatically generated if the you have set the IDENTITY on them and therefore are read only.


这篇关于使用WCF服务错误更新数据网格中的主键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆