C# 从代码隐藏在couchbase中创建文档

C# 从代码隐藏在couchbase中创建文档,c#,nosql,couchbase,C#,Nosql,Couchbase,我一直在用CouchDB。现在我正在尝试将我的应用程序从CouchDb迁移到CouchBase 什么是等效代码 public CouchResponse CreateDocument(string jsonForDocument); 坐在沙发上 我使用以下代码在couchdb中查询创建文档 CouchDatabase oCouchDB; oClient = new CouchClient(host, port, username, password, false, Authenticatio

我一直在用CouchDB。现在我正在尝试将我的应用程序从CouchDb迁移到CouchBase

什么是等效代码

public CouchResponse CreateDocument(string jsonForDocument);
坐在沙发上

我使用以下代码在couchdb中查询创建文档

CouchDatabase oCouchDB;

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

Couchbase中的CRUD函数通过memcached API(key/value)执行

有关更多信息,请参阅