public static RequestDelete MakeRequestDelete(ServiceVertexType myVertexType, IEnumerable <Int64> myVertexIDs = null, ServiceDeletePayload myDeletePayload = null) { RequestGetVertices PreRequest = null; if (myVertexIDs != null) { PreRequest = new RequestGetVertices(myVertexType.Name, myVertexIDs); } else { PreRequest = new RequestGetVertices(myVertexType.Name); } RequestDelete Request = new RequestDelete(PreRequest); if (myDeletePayload != null) { foreach (var toDel in myDeletePayload.ToBeDeletedAttributes) { Request.AddAttribute(toDel); } } return(Request); }
public KeyValuePair <IEnumerable <IComparable>, IEnumerable <IComparable> > Delete(SecurityToken mySecurityToken, Int64 myTransactionToken, ServiceVertexType myVertexType, IEnumerable <Int64> myVertexIDs = null, ServiceDeletePayload myDeletePayload = null) { var Request = ServiceRequestFactory.MakeRequestDelete(myVertexType, myVertexIDs, myDeletePayload); var Result = this.GraphDS.Delete <KeyValuePair <IEnumerable <IComparable>, IEnumerable <IComparable> > >(mySecurityToken, myTransactionToken, Request, ServiceReturnConverter.ConverteAllLists); return(Result); }