Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

.Net client - GetView returns zero rows

1 reply [Last post]
  • Login or register to post comments
Mon, 11/05/2012 - 15:14
ekoostikmartin
Offline
Joined: 11/05/2012
Groups: None

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?

Top
  • Login or register to post comments
Mon, 11/05/2012 - 15:39
ekoostikmartin
Offline
Joined: 11/05/2012
Groups: None

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.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker