Esempio n. 1
0
 /// <summary>
 /// Inserts single document into Clusterpoint Server storage.
 /// </summary>
 /// <param name="id">Document ID.</param>
 /// <param name="document">Document as CPS_SimpleXML or XmlElement object.</param>
 /// <returns>List of document IDs inserted.</returns>
 public List<string> insertSingle(string id, Object document)
 {
     CPS_InsertRequest request = new CPS_InsertRequest(id, document);
     this.p_lastResponse = this.p_connection.sendRequest(request);
     return ((CPS_ModifyResponse)this.p_lastResponse).getModifiedIds();
 }
Esempio n. 2
0
 /// <summary>
 /// Inserts multiple documents into Clusterpoint Server storage.
 /// </summary>
 /// <param name="documents">Documents as Dictionary&lt;string, CPS_SimpleXML&gt; or Dictionary&lt;string, XmlElement&gt; where key is document ID.</param>
 /// <returns>List of document IDs inserted.</returns>
 public List<string> insertMultiple(Object documents)
 {
     CPS_InsertRequest request = new CPS_InsertRequest(documents);
     this.p_lastResponse = this.p_connection.sendRequest(request);
     return ((CPS_ModifyResponse)this.p_lastResponse).getModifiedIds();
 }