To get started rather quickly you might want to have a look at MyCouch - THE async CouchDb for .NET - https://github.com/danielwertheim/mycouch
You have a Getting started article here (about albums and artists): http://danielwertheim.se/get-up-and-running-with-couchdb-and-c-using-mycouch-on-windows/
Look in the Wiki for info on how to get started, but basically:
using(var client = new MyCouchClient("http://localhost:5984/mydb")) {
var putJsonResponse = await client.Documents.PutAsync(...json...);
var putEntityResponse = await client.Entities.PutAsync(myEntity);
}
Where you would just model an entity that fits your domain:
public class Artist
{
public string ArtistId { get; set; }
public string ArtistRev { get; set; }
public string Name { get; set; }
public Album[] Albums { get; set; }
}
public class Album
{
public string Name { get; set; }
public int Tracks { get; set; }
}
using a client to store model according to above:
var artist = new Artist
{
ArtistId = "5",
Name = "Foo bar",
Albums = new[]
{
new Album { Name = "Hello world!", Tracks = 9 }
}
};
var response = await db.Entities.PutAsync(artist);
Hope it helps.