问题
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