C# Class Divan.CouchJsonDocument

A CouchDocument that holds its contents as a parsed JObject DOM which can be used as a "light weight" base document instead of CouchDocument. The _id and _rev are held inside the JObject.
Inheritance: ICouchDocument
显示文件 Open project: kolosy/Divan Class Usage Examples

Public Methods

Method Description
CouchJsonDocument ( ) : Newtonsoft.Json
CouchJsonDocument ( Newtonsoft.Json.Linq.JObject doc ) : Newtonsoft.Json
CouchJsonDocument ( string json ) : Newtonsoft.Json
CouchJsonDocument ( string json, string id ) : Newtonsoft.Json
CouchJsonDocument ( string json, string id, string rev ) : Newtonsoft.Json
ReadJson ( Newtonsoft.Json.Linq.JObject obj ) : void
ToString ( ) : string
WriteJson ( JsonWriter writer ) : void

Method Details

CouchJsonDocument() public method

public CouchJsonDocument ( ) : Newtonsoft.Json
return Newtonsoft.Json

CouchJsonDocument() public method

public CouchJsonDocument ( Newtonsoft.Json.Linq.JObject doc ) : Newtonsoft.Json
doc Newtonsoft.Json.Linq.JObject
return Newtonsoft.Json

CouchJsonDocument() public method

public CouchJsonDocument ( string json ) : Newtonsoft.Json
json string
return Newtonsoft.Json

CouchJsonDocument() public method

public CouchJsonDocument ( string json, string id ) : Newtonsoft.Json
json string
id string
return Newtonsoft.Json

CouchJsonDocument() public method

public CouchJsonDocument ( string json, string id, string rev ) : Newtonsoft.Json
json string
id string
rev string
return Newtonsoft.Json

ReadJson() public method

public ReadJson ( Newtonsoft.Json.Linq.JObject obj ) : void
obj Newtonsoft.Json.Linq.JObject
return void

ToString() public method

public ToString ( ) : string
return string

WriteJson() public method

public WriteJson ( JsonWriter writer ) : void
writer Newtonsoft.Json.JsonWriter
return void