run a primitive mycouch query
<p>I'm new to couchdb and mycouch. I'm trying to implement a very simple query, I just want to get the results of a view and save it into my DTO class.</p>

<p>My couchdb query works, when I query it manually via HTTP:</p>

<pre><code>http://localhost:5984/mydb/_design/tshirts/_view/getAllTshirts
</code></pre>

<p>However, when I try running it from my app using mycouch, I can't get to run it. My current query:</p>

<pre><code>using MyCouch.Requests;
using MyCouch.Responses;

// (...)

using (var client = new Client("http://localhost:5984/samples")) {
    var query = new QueryViewRequest("getAllTshirts");

    ViewQueryResponse&lt;TShirt[]&gt; result = await client.Views.QueryAsync&lt;TShirt[]&gt;(query);
    Console.WriteLine (result);
}
</code></pre>

<p>For some reason, it won't find the <code>Client</code> class. I found an example where <code>Client</code> is used on <a href="https://github.com/danielwertheim/mycouch.aspnet.identity/blob/master/src/projects/MyCouch.AspNet.Identity.Net45/MyCouchUserStore.cs" rel="nofollow">github</a>, as you can see, I'm using all the <code>MyCouch</code> related namespaces as in the example.</p>

<p>I also tried using <code>MyCouchStore</code> instead:</p>

<pre><code>using (var store = new MyCouchStore("http://localhost:5984/", "samples")) {
    var query = new QueryViewRequest("getAllTshirts");
    ViewQueryResponse&lt;TShirt[]&gt; result = await store.Views.QueryAsync&lt;TShirt[]&gt;(query);
    Console.WriteLine (result);
}
</code></pre>

<p>However, the <code>store</code> doesn't contain any property named <code>Views</code>.
Any ideas how to query my view using MyCouch?</p>