Ejemplo n.º 1
0
 /// <summary>Removes a document</summary>
 /// <seealso><a href="https://docs.arangodb.com/current/HTTP/Document/WorkingWithDocuments.html#removes-a-document">API
 /// *      Documentation</a></seealso>
 /// <param name="key">The key of the document</param>
 /// <param name="type">
 /// The type of the document (POJO class, VPackSlice or String for Json). Only necessary if
 /// options.returnOld is set to true, otherwise can be null.
 /// </param>
 /// <param name="options">Additional options, can be null</param>
 /// <returns>information about the document</returns>
 /// <exception cref="ArangoDBException"/>
 /// <exception cref="com.arangodb.ArangoDBException"/>
 public virtual DocumentDeleteEntity <T> deleteDocument <T>(string
                                                            key, DocumentDeleteOptions options)
 {
     System.Type type = typeof(T);
     return(this.executor.execute(this.deleteDocumentRequest(key, options), deleteDocumentResponseDeserializer
                                      (type)));
 }
Ejemplo n.º 2
0
 /// <summary>Removes multiple document</summary>
 /// <seealso><a href=
 /// *      "https://docs.arangodb.com/current/HTTP/Document/WorkingWithDocuments.html#removes-multiple-documents">API
 /// *      Documentation</a></seealso>
 /// <param name="keys">The keys of the documents</param>
 /// <param name="type">
 /// The type of the documents (POJO class, VPackSlice or String for Json). Only necessary if
 /// options.returnOld is set to true, otherwise can be null.
 /// </param>
 /// <param name="options">Additional options, can be null</param>
 /// <returns>information about the documents</returns>
 /// <exception cref="ArangoDBException"/>
 /// <exception cref="com.arangodb.ArangoDBException"/>
 public virtual MultiDocumentEntity <DocumentDeleteEntity <T> > deleteDocuments <T>(System.Collections.Generic.ICollection <string> keys, DocumentDeleteOptions
                                                                                    options)
 {
     System.Type type = typeof(T);
     return(this.executor.execute(this.deleteDocumentsRequest(keys, options), deleteDocumentsResponseDeserializer
                                      (type)));
 }