Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-722

Provide means of mapping to POCO's without using a ViewResultRow<T>

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 2.0.0
    • 2.0 Beta 2
    • library
    • None

    Description

      Each row returned by a view request is wrapped in a "view result row". This ticket provides a means of escaping the row wrapper so that a use can map results direct to a List<T> instead of a List<ViewResultRow<T>> collection. For example:

      {"total_rows":7303,"rows":[

      {"id":"21st_amendment_brewery_cafe","key":["21st_amendment_brewery_cafe"],"value":null}

      ,

      {"id":"21st_amendment_brewery_cafe-21a_ipa","key":["21st_amendment_brewery_cafe","21st_amendment_brewery_cafe-21a_ipa"],"value":null}

      ,
      ...

      {"id":"zea_rotisserie_and_brewery-z_p_a_india_pale_ale","key":["zea_rotisserie_and_brewery","zea_rotisserie_and_brewery-z_p_a_india_pale_ale"],"value":null}

      ]
      }

      See post: https://forums.couchbase.com/t/2-0-dp3-question-on-views-jsondatamapper-cs-deserialization/1951

      Attachments

        For Gerrit Dashboard: NCBC-722
        # Subject Branch Project Status CR V

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty