RavenDB Updated Class new property not getting serialised

倾然丶 夕夏残阳落幕 提交于 2019-12-24 09:57:34

问题


I am working with RavenDb and am stuck at a brick wall.

I had an old class that I was persisting and it was all working fine. But during development I added an additional property to this class. Now when I persist the class all the old properties get persisted but the new property added is not appearing when I brows the repository using web browser.

Is there anything specific that needs to be done if the class changes for raven to serialise this new property?

I am on version 426.


回答1:


User544550, If you have [DataMember] properties, it will use those and ignore anything not marked with [DataMember] Either remove all [DataMember] attributes, or add [DataMember] to the new prop.



来源:https://stackoverflow.com/questions/6985135/ravendb-updated-class-new-property-not-getting-serialised

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