RavenDb entity naming

主宰稳场 提交于 2020-01-16 18:15:42

问题


I am using RavenDB, and I save my documents (which come from a C# class called "FeedPost") with the id: "Posts/[GUID]" (where [GUID] is a guid).

Raven DB creates a document, and sets its entity-name to "FeedPosts". Ok - fine. How come, when I go in to Raven Studio and modify a document, the entity-name for that document CHANGES from "FeedPosts" to "Posts"?

I BELIEVE it is looking at the Id of the document, but I havent asked it to change the entity-name - why does it just choose to do this?

Thanks


回答1:


Adam, It shouldn't be doing that, we had a bug in the unstable version that would do something similar, but it was fixed and was never in a stable version.

What build are you using?



来源:https://stackoverflow.com/questions/10421839/ravendb-entity-naming

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