Document.Id and Document.Rev properties behaviour #26

merged 1 commit into from Jan 30, 2012


None yet

2 participants



I've faced an issue recently, Document["_id"] and Document["_rev"] stay unchanged on Document.Id and Document.Rev update. In my view it is not what you'd normally expect to see.

So, I propose to make Document.Id and Document.Rev properties use JObject's indexer with keys "_id" and "_rev" as backing fields.

@deadok22 deadok22 Changed Document's Rev and Id properties behaviour. They now use JObj…

"_rev" and "_id" fields respectively. It helps to avoid getting different
values from properties and using indexer.
@soitgoes soitgoes merged commit 6cd9af0 into soitgoes:master Jan 30, 2012

I like this change. Thanks for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment