private void DeleteLinksToDocument(int documentID) { BPLinks bp = new BPLinks(); BELinks ds = bp.SelectByDocumentID(documentID); foreach (BELinks.tbl_LinksRow linkRow in ds.tbl_Links) linkRow.Delete(); bp.Update(ds); }