2012-10-26 43 views
0

我一直在使用CouchDB。現在我試圖將我的應用程序從CouchDb遷移到CouchBase。從後面的代碼在couchbase中創建文檔

什麼是

public CouchResponse CreateDocument(string jsonForDocument); 

在couchbase等價代碼?

我甲肝用下面的代碼爲在Couchbase CouchDB中查詢創建文檔..

CouchDatabase oCouchDB; 

oClient = new CouchClient(host, port, username, password, false, AuthenticationType.Cookie, 30000); 
oCouchDB = oClient.GetDatabase(baseDatabase); 
CouchResponse resp = oCouchDB.CreateDocument(jsonString); 

回答