.Net client - GetView returns zero rows
Mon, 11/05/2012 - 15:14
I have the following view, which when executed directly from the browser, returns results:
http://MYSERVER/matching/_design/test/_view/test?connection_timeout=6000...
As you can see, I have a bucket called "matching" view designname called "test" and view called "test". Also this view is promoted to production. But when I run the following in the .Net client I get zero results:
IView<IViewRow> test;
using (CouchbaseClient cbClient = new CouchbaseClient())
{
test = cbClient.GetView("test", "test");
}I know that my client is connecting properly because I can store and retrieve from this bucket just fine. Is there something wrong with my syntax?
Nevermind I figured it out. I didn't realize once the client was disposed the view was no longer valid, needed to convert to results to a List (or whatever). Makes sense, works much like the Entity Framework client.