Connect CouchDB with asp.net C# application -
how connect couchdb asp.net c# application? if 1 can give sample application.
after installing nuget, create instance of mycouch.client , pass url of database.
using (var client = new mycouchclient("http://127.0.0.1:5984/test")) { //consume here }
the format is: {scheme}://[{username}:{password}]/{authority}/{localpath}
. v0.11.0, there's specific mycouchuribuilder can use building uri. automatically e.g. apply uri.escapedatastring
username , password when calling setbasiccredentials
.
var uribuilder = new mycouchuribuilder("http://localhost:5984/") .setdbname(testconstants.testdbname) .setbasiccredentials("foob@r", "p@ssword"); return new mycouchclient(uribuilder.build());
for more details click here
Comments
Post a Comment