public void Delete(Int32?ID) { Case2Biz m_cbiz = new Case2Biz(); DataTable dt = m_cbiz.GetByCaseID(ID); if (dt != null) { foreach (DataRow dr in dt.Rows) { m_cbiz.Delete(Convert.ToInt32(dr[Case2Map.ID].ToString())); } } m_db.Delete(ID); }
public void Delete(Int32?ID) { m_db.Delete(ID); }