Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-6953

.NET SDK docs need example of using the result of a Get()

    XMLWordPrintable

Details

    Description

      As a non-C# guy, trying to use C#, I ran into troubles trying to figure out how to use the result of the collection.GetAsync() method. An explicit code example that's right in the SDK docs would help.

      Perhaps it's like the following (NOTE: I am guessing! Not validated / not sure)...
      {{
      var result = await collection.GetAsync(“post-1234");

      var title = getResult.ContentAs<dynamic>()["title"];

      /* title == "My Latest Blog Post" */
      }}

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hakim.cassimally Hakim Cassimally
              steve Steve Yen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty