コード例 #1
0
        /// <summary>
        /// 更新记录
        /// </summary>
        public static bool Update(ModelDataPublishLog model)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(string.Format("Update S_DataPublish_Log Set TaskId={0},ResultId={1},desKey='{2}' Where Id={3}",
                                    model.TaskId,
                                    model.ResultId,
                                    model.DesKey,
                                    model.CreateTime
                                    ));
            return(SQLiteHelper.Execute(dbStr, sb.ToString()) > 0);
        }
コード例 #2
0
        /// <summary>
        /// 插入记录
        /// </summary>
        public static bool Insert(ModelDataPublishLog model)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(string.Format("Insert Into S_DataPublish_Log(TaskId,ResultId,desKey,CreateTime)Values({0},{1},'{2}','{3}')",
                                    model.TaskId,
                                    model.ResultId,
                                    model.DesKey,
                                    model.CreateTime
                                    ));
            return(SQLiteHelper.Execute(dbStr, sb.ToString()) > 0);
        }