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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -