Xavier
Xavier

Reputation: 1794

Creating a document in couchbase from code behind

I have been using CouchDB. Now i'm trying to migrate my application from CouchDb to CouchBase.

What is the equivalent code for

public CouchResponse CreateDocument(string jsonForDocument);

in couchbase.?

I hav used the following code for querying the create document in couchdb..

CouchDatabase oCouchDB;

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

Upvotes: 0

Views: 369

Answers (1)

John Zablocki
John Zablocki

Reputation: 1592

CRUD functions in Couchbase are performed via the memcached API (key/value).

Please see http://www.couchbase.com/develop/net/next for more information.

Upvotes: 1

Related Questions