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

Create LoadDocument() method to be an analog to GetDocument()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • backlog-2.0
    • 2.0 Beta
    • library
    • None

    Description

      There should be an equivalent method to simply "Load" a pre-made document:

      static public IDocumentResult<T> LoadDocument<T>(this Couchbase.Core.IBucket bucket, IDocument<T> doc)

      { var res = bucket.GetDocument<T>(doc.Id); doc.Value = res.Value; doc.Cas = res.Document.Cas; return res; }

      or similar

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            mnunberg Mark Nunberg (Inactive)
            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