Closed paulspencerwilliams closed 4 years ago
The proper RavenDb implementation is in Chapter 8. Sorry, it caused some confusion. If you look at the ClassifiedAdTitle
in that chapter, you'd find the default constructor that I had to add exactly to solve the issue you reported:
When testing the developed application, at the end of Chapter 6, whilst running the server in between API posts, all seems to work fine, most likely due to Raven's document cache. However, if I restart the app in between API posts, I'm presuming the lack of Raven client cache means it's client has to pull documents from the database, and deserialisation fails with:
I can see that persistence is generally working however, when viewing the document store, amount 321 has been updated several times...
I'd imagine this doesn't really matter based on the context of the book, but has certainly brought doubt in my mind as to my following of the code.