代码改变世界

随笔分类 -  ado.net entity framework

Entities exposed by DomainService operations must have at least one public property marked with the KeyAttribute

2011-08-11 18:07 by 雨林, 569 阅读, 收藏, 编辑
摘要: 使用ado.net entity framework从存储过程生成复杂类型实体类,然后使用WCF ria service将实体类想客户端暴露。编译过程中产生一个错误,The entity '实体类' in DomainService 'wcf ria 服务' does not have a key defined. Entities exposed by DomainService operations must have at least one public property marked with the KeyAttribute产生这个错误是因为 ado 阅读全文
点击右上角即可分享
微信分享提示