7

want to connect to a CouchDb databse from asp.net core web api , but am having trouble finding the code to do so.

Can anyone help me with the code to do that? What is the 'normal' way of doing that?

Cheers!

mandes
  • 105
  • 2
  • 9

2 Answers2

2

You can use the MyCouch Library for .Net https://github.com/danielwertheim/mycouch

Juanjo Rodriguez
  • 2,103
  • 8
  • 19
  • You have more documentation in the project wiki https://github.com/danielwertheim/mycouch/wiki/documentation#install-using-nuget – Juanjo Rodriguez Dec 15 '17 at 09:17
  • not able to install mycouch because some dependency is missing is theare any example with asp.net core 2.0 webapi crud with couch db so i can undertand basic operation step by step – mandes Dec 15 '17 at 10:06
  • Yo can check the cloudant web starter for ASP .NET https://github.com/IBM-Cloud/aspnet-core-cloudant. Cloudant is API level compatible with CouchDB – Juanjo Rodriguez Dec 15 '17 at 10:22
  • 1
    MyCouch has been updated to v5.1.1 @ 2018-03-19 working with net core 2.0 – serious Mar 28 '18 at 21:25
0

I had the same need and after evaluating the existing options, I created a set of mechanisms that met the requirements that I had to meet and made available on github and the nuget package.

The explanation of how to use it is on github.

Below is the link in case you want to take a look.

In time, to prevent someone from coming here and deleting my answer, I inform you that I have no intention of promoting what I did with this answer, just suggesting that you evaluate it and if it is your case, feel free to use it.

Link: Nuget Package | Github

An example webapi core project follows how to make this connection and perform data operations with this lib: webapi core sample