开发者

RavenDB Updated Class new property not getting serialised

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 t开发者_Go百科he 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜