private void DeleteAttachmentsToDocument(int documentID) { BPAttachments bp = new BPAttachments(); BEAttachments ds = bp.SelectByDocumentID(documentID); foreach (BEAttachments.tbl_AttachmentsRow attachmentRow in ds.tbl_Attachments) attachmentRow.Delete(); bp.Update(ds); }
public void SavePageAttachmentInfo(int pageTypeSpecificID, int pageTypeID) { BPAttachments bpAttachments = new BPAttachments(); BEAttachments dsAttachmentsInDataBase = new BEAttachments(); foreach (BEAttachments.tbl_AttachmentsRow attachmentRow in dsInternal.tbl_Attachments) { attachmentRow.PageTypeSpecificID = pageTypeSpecificID; attachmentRow.PageTypeID = pageTypeID; } dsAttachmentsInDataBase = dsInternal; bpAttachments.Update(dsAttachmentsInDataBase); }
public void DeletePageAttachmentInfo() { BPAttachments bpAttachments = new BPAttachments(); BEAttachments dsAttachmentsInDataBase = new BEAttachments(); dsAttachmentsInDataBase = bpAttachments.SelectByPageTypeSpecificIDAndPageTypeID(PageTypeSpecificID, PageTypeID); foreach (BEAttachments.tbl_AttachmentsRow attachmentRow in dsAttachmentsInDataBase.tbl_Attachments) attachmentRow.Delete(); bpAttachments.Update(dsAttachmentsInDataBase); }
public void SavePageAttachmentInfo() { BPAttachments bpAttachments = new BPAttachments(); BEAttachments dsAttachmentsInDataBase = new BEAttachments(); dsAttachmentsInDataBase = dsInternal; bpAttachments.Update(dsAttachmentsInDataBase); }