public async Task UpsertDocument(SmallDocumentWithLargeAttachment doc, LargeDocument attachment) { var upsertResult = await StoreClient.UpsertDocumentAsync(doc, _smallMapping, new OperationOptions()); await StoreClient.CreateAttachmentAsync(doc, upsertResult.DocumentVersion, _attachmentMapping, attachment); }
public async Task UpsertDocument(LargeDocument document) { await StoreClient.UpsertDocumentAsync(document, _largeMapping, new OperationOptions()); }