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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -