public void removeDataSource(string DataID) { DI_DAO dao = null; try { dao = new DI_DAO(); dao.beginTransaction(); dao.removeDataSource(DataID); dao.removeTableSource(DataID); dao.commitTransaction(); } catch (Exception ex) { dao.rollbackTransaction(); throw ex; } }