Пример #1
0
 public static void ClearDocument(string documentId)
 {
     WhiteBears.DatabaseHelper dh = new WhiteBears.DatabaseHelper();
     dh.RunDeleteQuery($"DELETE FROM DocumentRole WHERE DocumentId = {documentId}");
     dh.RunDeleteQuery($"DELETE FROM Document WHERE DocumentId = {documentId}");
 }
Пример #2
0
 public static int DeleteDocumentVersionDB(string documentId, int version)
 {
     WhiteBears.DatabaseHelper dh = new WhiteBears.DatabaseHelper();
     return(dh.RunDeleteQuery($"DELETE FROM DocumentVersion WHERE DocumentID = {documentId} AND Version = '{version}'"));
 }