IAddOrUpdateService interface


Provides methods for adding or updating documents.

public interface IAddOrUpdateService

Methods

Add or update document

Inserts or updated document with specified reference. If document reference is not selected, cloud storage will assigne new reference for created document.

Method will return AddDocumentResult with reference of created document.

AddDocumentResult AddOrUpdate<TDocument>(TDocument document);

Examples

Add or update document

Be aware that you can only create the document with a reference that does not already exist.
To make sure that document with specified reference is stored, user AddOrUpdate method:

service.Collection("firstCollection").Document("myReference").AddOrUpdate(myDocument);

results matching ""

    No results matching ""