摘要:
使用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 阅读全文