/// <summary> /// 更新SmokeDetectorDayReport信息 /// </summary> public static void UpdateSmokeDetectorDayReport(SmokeDetectorDayReport entity) { DataCommand cmd = new DataCommand("UpdateSmokeDetectorDayReport"); cmd.SetParameter <SmokeDetectorDayReport>(entity); cmd.ExecuteNonQuery(); }
/// <summary> /// 获取单个SmokeDetectorDayReport信息 /// </summary> public static SmokeDetectorDayReport LoadSmokeDetectorDayReport(int sysNo) { DataCommand cmd = new DataCommand("LoadSmokeDetectorDayReport"); cmd.SetParameter("@SysNo", DbType.Int32, sysNo); SmokeDetectorDayReport result = cmd.ExecuteEntity <SmokeDetectorDayReport>(); return(result); }
/// <summary> /// 创建SmokeDetectorDayReport信息 /// </summary> public static int InsertSmokeDetectorDayReport(SmokeDetectorDayReport entity) { DataCommand cmd = new DataCommand("InsertSmokeDetectorDayReport"); cmd.SetParameter <SmokeDetectorDayReport>(entity); int result = cmd.ExecuteScalar <int>(); return(result); }