No key defined error on entity after branching in TFS

余生长醉 提交于 2020-01-06 07:38:24

问题


We are consistently getting the following RIA error message, after branching a team project in TFS:

The Entity 'abc' in DomainService 'MyDomainService' does not have a key defined. Entity types exposed by DomainService operations must have at least one public property marked with the KeyAttribute.

Everything works in the source branch, and when comparing the two branches there is absolutely no difference.

I have also tried to install TFS 2012 on a virtual machine, import the project there, and branch it out. Again the source project works fine, but the branched version fails.

Anyone who has any idea where to look to solve this?

UPDATE

It's not consistent, as I just succeeded in creating a new branch. However I've found the renaming a project can cause the same behaviour. A (quite cumbersome) fix seems to be to create new workspaces until it succeeds...

来源:https://stackoverflow.com/questions/14833699/no-key-defined-error-on-entity-after-branching-in-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!