Document.Id and Document.Rev properties behaviour #26

Merged
merged 1 commit into from Jan 30, 2012

Projects

None yet

2 participants

@deadok22
Contributor

Hi,

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…
…ect's

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

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