Click or drag to resize
IBucketUpsertT Method (IDocumentT, ReplicateTo, PersistTo)
Inserts or replaces an existing JSON document into IBucket on a Couchbase Server.

Namespace: Couchbase.Core
Assembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
IDocumentResult<T> Upsert<T>(
	IDocument<T> document,
	ReplicateTo replicateTo,
	PersistTo persistTo
)

Parameters

document
Type: CouchbaseIDocumentT
The IDocumentT JSON document to add to the database.
replicateTo
Type: CouchbaseReplicateTo
persistTo
Type: CouchbasePersistTo

Type Parameters

T
The Type T value of the document to be updated or inserted.

Return Value

Type: IDocumentResultT
An object implementing IDocumentResultT with information regarding the operation.
See Also