/// <summary> /// 删除 /// </summary> /// <returns>是否成功</returns> public override void Delete() { if (!m_Loaded) { throw new AppException("尚未初始化"); } bool result = (WeekScore.Delete(WeekScoreId) == 1); //更新缓存 if (result && CachedEntityCommander.IsTypeRegistered(typeof(WeekScoreInfo))) { ResetCache(); } if (!result) { throw new AppException("删除失败,数据可能被删除"); } }
//删除指定Id的周报 public static void DelWeekScore(int wkid) { WeekScore.Delete(wkid); }