コード例 #1
0
        /// <summary>
        /// 添加Job运行日志信息
        /// </summary>
        public int AddJobExecuteLog(JobExecuteLog model)
        {
            string sql = "INSERT INTO JobExecuteLog (JobId,ExecuteTime,Success) VALUES(@JobId,@ExecuteTime,@Success)";

            using (var conn = new SqlConnection(ConnectionStr.FxDb))
            {
                conn.Open();
                return(conn.Execute(sql, model));
            }
        }
コード例 #2
0
        /// <summary>
        /// 修改Job运行日志信息
        /// </summary>
        public int UpdateJobExecuteLog(JobExecuteLog model)
        {
            string sql = "UPDATE JobExecuteLog SET JobId=@JobId,ExecuteTime=@ExecuteTime,Success=@Success WHERE ID=@ID";

            using (var conn = new SqlConnection(ConnectionStr.FxDb))
            {
                conn.Open();
                return(conn.Execute(sql, model));
            }
        }
コード例 #3
0
 /// <summary>
 /// 添加Job运行日志信息
 /// </summary>
 public int AddJobExecuteLog(JobExecuteLog model)
 {
     return(jobExecuteLogDAL.AddJobExecuteLog(model));
 }
コード例 #4
0
 /// <summary>
 /// 修改Job运行日志信息
 /// </summary>
 public int UpdateJobExecuteLog(JobExecuteLog model)
 {
     return(jobExecuteLogDAL.UpdateJobExecuteLog(model));
 }