public int Add(RoadFlow.Data.Model.WorkFlowArchives model)
        {
            string sql = "INSERT INTO WorkFlowArchives\r\n\t\t\t\t(ID,FlowID,StepID,FlowName,StepName,TaskID,GroupID,InstanceID,Title,Contents,Comments,WriteTime) \r\n\t\t\t\tVALUES(@ID,@FlowID,@StepID,@FlowName,@StepName,@TaskID,@GroupID,@InstanceID,@Title,@Contents,@Comments,@WriteTime)";

            SqlParameter[] parameter = new SqlParameter[12]
            {
                new SqlParameter("@ID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.ID
                },
                new SqlParameter("@FlowID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.FlowID
                },
                new SqlParameter("@StepID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.StepID
                },
                new SqlParameter("@FlowName", SqlDbType.NVarChar, 1000)
                {
                    Value = model.FlowName
                },
                new SqlParameter("@StepName", SqlDbType.NVarChar, 1000)
                {
                    Value = model.StepName
                },
                new SqlParameter("@TaskID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.TaskID
                },
                new SqlParameter("@GroupID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.GroupID
                },
                new SqlParameter("@InstanceID", SqlDbType.VarChar, 500)
                {
                    Value = model.InstanceID
                },
                new SqlParameter("@Title", SqlDbType.NVarChar, 8000)
                {
                    Value = model.Title
                },
                new SqlParameter("@Contents", SqlDbType.Text, -1)
                {
                    Value = model.Contents
                },
                new SqlParameter("@Comments", SqlDbType.Text, -1)
                {
                    Value = model.Comments
                },
                new SqlParameter("@WriteTime", SqlDbType.DateTime, 8)
                {
                    Value = model.WriteTime
                }
            };
            return(dbHelper.Execute(sql, parameter));
        }
        public int Update(RoadFlow.Data.Model.WorkFlowArchives model)
        {
            string sql = "UPDATE WorkFlowArchives SET \r\n\t\t\t\tFlowID=@FlowID,StepID=@StepID,FlowName=@FlowName,StepName=@StepName,TaskID=@TaskID,GroupID=@GroupID,InstanceID=@InstanceID,Title=@Title,Contents=@Contents,Comments=@Comments,WriteTime=@WriteTime\r\n\t\t\t\tWHERE ID=@ID";

            SqlParameter[] parameter = new SqlParameter[12]
            {
                new SqlParameter("@FlowID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.FlowID
                },
                new SqlParameter("@StepID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.StepID
                },
                new SqlParameter("@FlowName", SqlDbType.NVarChar, 1000)
                {
                    Value = model.FlowName
                },
                new SqlParameter("@StepName", SqlDbType.NVarChar, 1000)
                {
                    Value = model.StepName
                },
                new SqlParameter("@TaskID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.TaskID
                },
                new SqlParameter("@GroupID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.GroupID
                },
                new SqlParameter("@InstanceID", SqlDbType.VarChar, 500)
                {
                    Value = model.InstanceID
                },
                new SqlParameter("@Title", SqlDbType.NVarChar, 8000)
                {
                    Value = model.Title
                },
                new SqlParameter("@Contents", SqlDbType.Text, -1)
                {
                    Value = model.Contents
                },
                new SqlParameter("@Comments", SqlDbType.Text, -1)
                {
                    Value = model.Comments
                },
                new SqlParameter("@WriteTime", SqlDbType.DateTime, 8)
                {
                    Value = model.WriteTime
                },
                new SqlParameter("@ID", SqlDbType.UniqueIdentifier, -1)
                {
                    Value = model.ID
                }
            };
            return(dbHelper.Execute(sql, parameter));
        }
        private List <RoadFlow.Data.Model.WorkFlowArchives> DataReaderToList(SqlDataReader dataReader)
        {
            List <RoadFlow.Data.Model.WorkFlowArchives> list = new List <RoadFlow.Data.Model.WorkFlowArchives>();

            RoadFlow.Data.Model.WorkFlowArchives workFlowArchives = null;
            while (dataReader.Read())
            {
                workFlowArchives            = new RoadFlow.Data.Model.WorkFlowArchives();
                workFlowArchives.ID         = dataReader.GetGuid(0);
                workFlowArchives.FlowID     = dataReader.GetGuid(1);
                workFlowArchives.StepID     = dataReader.GetGuid(2);
                workFlowArchives.FlowName   = dataReader.GetString(3);
                workFlowArchives.StepName   = dataReader.GetString(4);
                workFlowArchives.TaskID     = dataReader.GetGuid(5);
                workFlowArchives.GroupID    = dataReader.GetGuid(6);
                workFlowArchives.InstanceID = dataReader.GetString(7);
                workFlowArchives.Title      = dataReader.GetString(8);
                workFlowArchives.Contents   = dataReader.GetString(9);
                workFlowArchives.Comments   = dataReader.GetString(10);
                workFlowArchives.WriteTime  = dataReader.GetDateTime(11);
                list.Add(workFlowArchives);
            }
            return(list);
        }
        public int Add(RoadFlow.Data.Model.WorkFlowArchives model)
        {
            //IL_0018: Unknown result type (might be due to invalid IL or missing references)
            //IL_001d: Unknown result type (might be due to invalid IL or missing references)
            //IL_002e: Expected O, but got Unknown
            //IL_002f: Expected O, but got Unknown
            //IL_003a: Unknown result type (might be due to invalid IL or missing references)
            //IL_003f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0050: Expected O, but got Unknown
            //IL_0051: Expected O, but got Unknown
            //IL_005c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0061: Unknown result type (might be due to invalid IL or missing references)
            //IL_0072: Expected O, but got Unknown
            //IL_0073: Expected O, but got Unknown
            //IL_0081: Unknown result type (might be due to invalid IL or missing references)
            //IL_0086: Unknown result type (might be due to invalid IL or missing references)
            //IL_0092: Expected O, but got Unknown
            //IL_0093: Expected O, but got Unknown
            //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b2: Expected O, but got Unknown
            //IL_00b3: Expected O, but got Unknown
            //IL_00be: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
            //IL_00d4: Expected O, but got Unknown
            //IL_00d5: Expected O, but got Unknown
            //IL_00e0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00e5: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f6: Expected O, but got Unknown
            //IL_00f7: Expected O, but got Unknown
            //IL_0105: Unknown result type (might be due to invalid IL or missing references)
            //IL_010a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0116: Expected O, but got Unknown
            //IL_0117: Expected O, but got Unknown
            //IL_0125: Unknown result type (might be due to invalid IL or missing references)
            //IL_012a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0136: Expected O, but got Unknown
            //IL_0137: Expected O, but got Unknown
            //IL_0141: Unknown result type (might be due to invalid IL or missing references)
            //IL_0146: Unknown result type (might be due to invalid IL or missing references)
            //IL_0152: Expected O, but got Unknown
            //IL_0153: Expected O, but got Unknown
            //IL_015d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0162: Unknown result type (might be due to invalid IL or missing references)
            //IL_016e: Expected O, but got Unknown
            //IL_016f: Expected O, but got Unknown
            //IL_017a: Unknown result type (might be due to invalid IL or missing references)
            //IL_017f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0190: Expected O, but got Unknown
            //IL_0191: Expected O, but got Unknown
            string sql = "INSERT INTO WorkFlowArchives\r\n\t\t\t\t(ID,FlowID,StepID,FlowName,StepName,TaskID,GroupID,InstanceID,Title,Contents,Comments,WriteTime) \r\n\t\t\t\tVALUES(:ID,:FlowID,:StepID,:FlowName,:StepName,:TaskID,:GroupID,:InstanceID,:Title,:Contents,:Comments,:WriteTime)";

            OracleParameter[] obj = new OracleParameter[12];
            OracleParameter   val = new OracleParameter(":ID", 126, 40);

            ((DbParameter)val).Value = model.ID;
            obj[0] = val;
            OracleParameter val2 = new OracleParameter(":FlowID", 126, 40);

            ((DbParameter)val2).Value = model.FlowID;
            obj[1] = val2;
            OracleParameter val3 = new OracleParameter(":StepID", 126, 40);

            ((DbParameter)val3).Value = model.StepID;
            obj[2] = val3;
            OracleParameter val4 = new OracleParameter(":FlowName", 119, 1000);

            ((DbParameter)val4).Value = model.FlowName;
            obj[3] = val4;
            OracleParameter val5 = new OracleParameter(":StepName", 119, 1000);

            ((DbParameter)val5).Value = model.StepName;
            obj[4] = val5;
            OracleParameter val6 = new OracleParameter(":TaskID", 126, 40);

            ((DbParameter)val6).Value = model.TaskID;
            obj[5] = val6;
            OracleParameter val7 = new OracleParameter(":GroupID", 126, 40);

            ((DbParameter)val7).Value = model.GroupID;
            obj[6] = val7;
            OracleParameter val8 = new OracleParameter(":InstanceID", 126, 500);

            ((DbParameter)val8).Value = model.InstanceID;
            obj[7] = val8;
            OracleParameter val9 = new OracleParameter(":Title", 119, 8000);

            ((DbParameter)val9).Value = model.Title;
            obj[8] = val9;
            OracleParameter val10 = new OracleParameter(":Contents", 105);

            ((DbParameter)val10).Value = model.Contents;
            obj[9] = val10;
            OracleParameter val11 = new OracleParameter(":Comments", 105);

            ((DbParameter)val11).Value = model.Comments;
            obj[10] = val11;
            OracleParameter val12 = new OracleParameter(":WriteTime", 106, 8);

            ((DbParameter)val12).Value = model.WriteTime;
            obj[11] = val12;
            OracleParameter[] parameter = (OracleParameter[])obj;
            return(dbHelper.Execute(sql, parameter));
        }
        public int Update(RoadFlow.Data.Model.WorkFlowArchives model)
        {
            //IL_0018: Unknown result type (might be due to invalid IL or missing references)
            //IL_001d: Unknown result type (might be due to invalid IL or missing references)
            //IL_002e: Expected O, but got Unknown
            //IL_002f: Expected O, but got Unknown
            //IL_003a: Unknown result type (might be due to invalid IL or missing references)
            //IL_003f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0050: Expected O, but got Unknown
            //IL_0051: Expected O, but got Unknown
            //IL_005f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0064: Unknown result type (might be due to invalid IL or missing references)
            //IL_0070: Expected O, but got Unknown
            //IL_0071: Expected O, but got Unknown
            //IL_007f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0084: Unknown result type (might be due to invalid IL or missing references)
            //IL_0090: Expected O, but got Unknown
            //IL_0091: Expected O, but got Unknown
            //IL_009c: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b2: Expected O, but got Unknown
            //IL_00b3: Expected O, but got Unknown
            //IL_00be: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
            //IL_00d4: Expected O, but got Unknown
            //IL_00d5: Expected O, but got Unknown
            //IL_00e3: Unknown result type (might be due to invalid IL or missing references)
            //IL_00e8: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f4: Expected O, but got Unknown
            //IL_00f5: Expected O, but got Unknown
            //IL_0103: Unknown result type (might be due to invalid IL or missing references)
            //IL_0108: Unknown result type (might be due to invalid IL or missing references)
            //IL_0114: Expected O, but got Unknown
            //IL_0115: Expected O, but got Unknown
            //IL_011e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0123: Unknown result type (might be due to invalid IL or missing references)
            //IL_012f: Expected O, but got Unknown
            //IL_0130: Expected O, but got Unknown
            //IL_013a: Unknown result type (might be due to invalid IL or missing references)
            //IL_013f: Unknown result type (might be due to invalid IL or missing references)
            //IL_014b: Expected O, but got Unknown
            //IL_014c: Expected O, but got Unknown
            //IL_0157: Unknown result type (might be due to invalid IL or missing references)
            //IL_015c: Unknown result type (might be due to invalid IL or missing references)
            //IL_016d: Expected O, but got Unknown
            //IL_016e: Expected O, but got Unknown
            //IL_017a: Unknown result type (might be due to invalid IL or missing references)
            //IL_017f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0190: Expected O, but got Unknown
            //IL_0191: Expected O, but got Unknown
            string sql = "UPDATE WorkFlowArchives SET \r\n\t\t\t\tFlowID=:FlowID,StepID=:StepID,FlowName=:FlowName,StepName=:StepName,TaskID=:TaskID,GroupID=:GroupID,InstanceID=:InstanceID,Title=:Title,Contents=:Contents,Comments=:Comments,WriteTime=:WriteTime\r\n\t\t\t\tWHERE ID=:ID";

            OracleParameter[] obj = new OracleParameter[12];
            OracleParameter   val = new OracleParameter(":FlowID", 126, 40);

            ((DbParameter)val).Value = model.FlowID;
            obj[0] = val;
            OracleParameter val2 = new OracleParameter(":StepID", 126, 40);

            ((DbParameter)val2).Value = model.StepID;
            obj[1] = val2;
            OracleParameter val3 = new OracleParameter(":FlowName", 119, 1000);

            ((DbParameter)val3).Value = model.FlowName;
            obj[2] = val3;
            OracleParameter val4 = new OracleParameter(":StepName", 119, 1000);

            ((DbParameter)val4).Value = model.StepName;
            obj[3] = val4;
            OracleParameter val5 = new OracleParameter(":TaskID", 126, 40);

            ((DbParameter)val5).Value = model.TaskID;
            obj[4] = val5;
            OracleParameter val6 = new OracleParameter(":GroupID", 126, 40);

            ((DbParameter)val6).Value = model.GroupID;
            obj[5] = val6;
            OracleParameter val7 = new OracleParameter(":InstanceID", 126, 500);

            ((DbParameter)val7).Value = model.InstanceID;
            obj[6] = val7;
            OracleParameter val8 = new OracleParameter(":Title", 119, 8000);

            ((DbParameter)val8).Value = model.Title;
            obj[7] = val8;
            OracleParameter val9 = new OracleParameter(":Contents", 105);

            ((DbParameter)val9).Value = model.Contents;
            obj[8] = val9;
            OracleParameter val10 = new OracleParameter(":Comments", 105);

            ((DbParameter)val10).Value = model.Comments;
            obj[9] = val10;
            OracleParameter val11 = new OracleParameter(":WriteTime", 106, 8);

            ((DbParameter)val11).Value = model.WriteTime;
            obj[10] = val11;
            OracleParameter val12 = new OracleParameter(":ID", 126, 40);

            ((DbParameter)val12).Value = model.ID;
            obj[11] = val12;
            OracleParameter[] parameter = (OracleParameter[])obj;
            return(dbHelper.Execute(sql, parameter));
        }
 public int Update(RoadFlow.Data.Model.WorkFlowArchives model)
 {
     return(dataWorkFlowArchives.Update(model));
 }
 public int Add(RoadFlow.Data.Model.WorkFlowArchives model)
 {
     return(dataWorkFlowArchives.Add(model));
 }
Beispiel #8
0
        public int Add(RoadFlow.Data.Model.WorkFlowArchives model)
        {
            //IL_001b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0020: Unknown result type (might be due to invalid IL or missing references)
            //IL_0031: Expected O, but got Unknown
            //IL_0032: Expected O, but got Unknown
            //IL_0040: Unknown result type (might be due to invalid IL or missing references)
            //IL_0045: Unknown result type (might be due to invalid IL or missing references)
            //IL_0056: Expected O, but got Unknown
            //IL_0057: Expected O, but got Unknown
            //IL_0065: Unknown result type (might be due to invalid IL or missing references)
            //IL_006a: Unknown result type (might be due to invalid IL or missing references)
            //IL_007b: Expected O, but got Unknown
            //IL_007c: Expected O, but got Unknown
            //IL_0089: Unknown result type (might be due to invalid IL or missing references)
            //IL_008e: Unknown result type (might be due to invalid IL or missing references)
            //IL_009a: Expected O, but got Unknown
            //IL_009b: Expected O, but got Unknown
            //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b9: Expected O, but got Unknown
            //IL_00ba: Expected O, but got Unknown
            //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cd: Unknown result type (might be due to invalid IL or missing references)
            //IL_00de: Expected O, but got Unknown
            //IL_00df: Expected O, but got Unknown
            //IL_00ed: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f2: Unknown result type (might be due to invalid IL or missing references)
            //IL_0103: Expected O, but got Unknown
            //IL_0104: Expected O, but got Unknown
            //IL_0111: Unknown result type (might be due to invalid IL or missing references)
            //IL_0116: Unknown result type (might be due to invalid IL or missing references)
            //IL_0122: Expected O, but got Unknown
            //IL_0123: Expected O, but got Unknown
            //IL_0130: Unknown result type (might be due to invalid IL or missing references)
            //IL_0135: Unknown result type (might be due to invalid IL or missing references)
            //IL_0141: Expected O, but got Unknown
            //IL_0142: Expected O, but got Unknown
            //IL_0150: Unknown result type (might be due to invalid IL or missing references)
            //IL_0155: Unknown result type (might be due to invalid IL or missing references)
            //IL_0161: Expected O, but got Unknown
            //IL_0162: Expected O, but got Unknown
            //IL_0170: Unknown result type (might be due to invalid IL or missing references)
            //IL_0175: Unknown result type (might be due to invalid IL or missing references)
            //IL_0181: Expected O, but got Unknown
            //IL_0182: Expected O, but got Unknown
            //IL_018d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0192: Unknown result type (might be due to invalid IL or missing references)
            //IL_01a3: Expected O, but got Unknown
            //IL_01a4: Expected O, but got Unknown
            string sql = "INSERT INTO workflowarchives\r\n\t\t\t\t(ID,FlowID,StepID,FlowName,StepName,TaskID,GroupID,InstanceID,Title,Contents,Comments,WriteTime) \r\n\t\t\t\tVALUES(@ID,@FlowID,@StepID,@FlowName,@StepName,@TaskID,@GroupID,@InstanceID,@Title,@Contents,@Comments,@WriteTime)";

            MySqlParameter[] obj = new MySqlParameter[12];
            MySqlParameter   val = new MySqlParameter("@ID", 253, 36);

            ((DbParameter)val).Value = model.ID;
            obj[0] = val;
            MySqlParameter val2 = new MySqlParameter("@FlowID", 253, 36);

            ((DbParameter)val2).Value = model.FlowID;
            obj[1] = val2;
            MySqlParameter val3 = new MySqlParameter("@StepID", 253, 36);

            ((DbParameter)val3).Value = model.StepID;
            obj[2] = val3;
            MySqlParameter val4 = new MySqlParameter("@FlowName", 752, -1);

            ((DbParameter)val4).Value = model.FlowName;
            obj[3] = val4;
            MySqlParameter val5 = new MySqlParameter("@StepName", 752, -1);

            ((DbParameter)val5).Value = model.StepName;
            obj[4] = val5;
            MySqlParameter val6 = new MySqlParameter("@TaskID", 253, 36);

            ((DbParameter)val6).Value = model.TaskID;
            obj[5] = val6;
            MySqlParameter val7 = new MySqlParameter("@GroupID", 253, 36);

            ((DbParameter)val7).Value = model.GroupID;
            obj[6] = val7;
            MySqlParameter val8 = new MySqlParameter("@InstanceID", 752, -1);

            ((DbParameter)val8).Value = model.InstanceID;
            obj[7] = val8;
            MySqlParameter val9 = new MySqlParameter("@Title", 752, -1);

            ((DbParameter)val9).Value = model.Title;
            obj[8] = val9;
            MySqlParameter val10 = new MySqlParameter("@Contents", 751, -1);

            ((DbParameter)val10).Value = model.Contents;
            obj[9] = val10;
            MySqlParameter val11 = new MySqlParameter("@Comments", 751, -1);

            ((DbParameter)val11).Value = model.Comments;
            obj[10] = val11;
            MySqlParameter val12 = new MySqlParameter("@WriteTime", 12, -1);

            ((DbParameter)val12).Value = model.WriteTime;
            obj[11] = val12;
            MySqlParameter[] parameter = (MySqlParameter[])obj;
            return(dbHelper.Execute(sql, parameter));
        }
Beispiel #9
0
        public int Update(RoadFlow.Data.Model.WorkFlowArchives model)
        {
            //IL_001b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0020: Unknown result type (might be due to invalid IL or missing references)
            //IL_0031: Expected O, but got Unknown
            //IL_0032: Expected O, but got Unknown
            //IL_0040: Unknown result type (might be due to invalid IL or missing references)
            //IL_0045: Unknown result type (might be due to invalid IL or missing references)
            //IL_0056: Expected O, but got Unknown
            //IL_0057: Expected O, but got Unknown
            //IL_0064: Unknown result type (might be due to invalid IL or missing references)
            //IL_0069: Unknown result type (might be due to invalid IL or missing references)
            //IL_0075: Expected O, but got Unknown
            //IL_0076: Expected O, but got Unknown
            //IL_0083: Unknown result type (might be due to invalid IL or missing references)
            //IL_0088: Unknown result type (might be due to invalid IL or missing references)
            //IL_0094: Expected O, but got Unknown
            //IL_0095: Expected O, but got Unknown
            //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b9: Expected O, but got Unknown
            //IL_00ba: Expected O, but got Unknown
            //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cd: Unknown result type (might be due to invalid IL or missing references)
            //IL_00de: Expected O, but got Unknown
            //IL_00df: Expected O, but got Unknown
            //IL_00ec: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
            //IL_00fd: Expected O, but got Unknown
            //IL_00fe: Expected O, but got Unknown
            //IL_010b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0110: Unknown result type (might be due to invalid IL or missing references)
            //IL_011c: Expected O, but got Unknown
            //IL_011d: Expected O, but got Unknown
            //IL_012a: Unknown result type (might be due to invalid IL or missing references)
            //IL_012f: Unknown result type (might be due to invalid IL or missing references)
            //IL_013b: Expected O, but got Unknown
            //IL_013c: Expected O, but got Unknown
            //IL_014a: Unknown result type (might be due to invalid IL or missing references)
            //IL_014f: Unknown result type (might be due to invalid IL or missing references)
            //IL_015b: Expected O, but got Unknown
            //IL_015c: Expected O, but got Unknown
            //IL_0167: Unknown result type (might be due to invalid IL or missing references)
            //IL_016c: Unknown result type (might be due to invalid IL or missing references)
            //IL_017d: Expected O, but got Unknown
            //IL_017e: Expected O, but got Unknown
            //IL_018d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0192: Unknown result type (might be due to invalid IL or missing references)
            //IL_01a3: Expected O, but got Unknown
            //IL_01a4: Expected O, but got Unknown
            string sql = "UPDATE workflowarchives SET \r\n\t\t\t\tFlowID=@FlowID,StepID=@StepID,FlowName=@FlowName,StepName=@StepName,TaskID=@TaskID,GroupID=@GroupID,InstanceID=@InstanceID,Title=@Title,Contents=@Contents,Comments=@Comments,WriteTime=@WriteTime\r\n\t\t\t\tWHERE ID=@ID";

            MySqlParameter[] obj = new MySqlParameter[12];
            MySqlParameter   val = new MySqlParameter("@FlowID", 253, 36);

            ((DbParameter)val).Value = model.FlowID;
            obj[0] = val;
            MySqlParameter val2 = new MySqlParameter("@StepID", 253, 36);

            ((DbParameter)val2).Value = model.StepID;
            obj[1] = val2;
            MySqlParameter val3 = new MySqlParameter("@FlowName", 752, -1);

            ((DbParameter)val3).Value = model.FlowName;
            obj[2] = val3;
            MySqlParameter val4 = new MySqlParameter("@StepName", 752, -1);

            ((DbParameter)val4).Value = model.StepName;
            obj[3] = val4;
            MySqlParameter val5 = new MySqlParameter("@TaskID", 253, 36);

            ((DbParameter)val5).Value = model.TaskID;
            obj[4] = val5;
            MySqlParameter val6 = new MySqlParameter("@GroupID", 253, 36);

            ((DbParameter)val6).Value = model.GroupID;
            obj[5] = val6;
            MySqlParameter val7 = new MySqlParameter("@InstanceID", 752, -1);

            ((DbParameter)val7).Value = model.InstanceID;
            obj[6] = val7;
            MySqlParameter val8 = new MySqlParameter("@Title", 752, -1);

            ((DbParameter)val8).Value = model.Title;
            obj[7] = val8;
            MySqlParameter val9 = new MySqlParameter("@Contents", 751, -1);

            ((DbParameter)val9).Value = model.Contents;
            obj[8] = val9;
            MySqlParameter val10 = new MySqlParameter("@Comments", 751, -1);

            ((DbParameter)val10).Value = model.Comments;
            obj[9] = val10;
            MySqlParameter val11 = new MySqlParameter("@WriteTime", 12, -1);

            ((DbParameter)val11).Value = model.WriteTime;
            obj[10] = val11;
            MySqlParameter val12 = new MySqlParameter("@ID", 253, 36);

            ((DbParameter)val12).Value = model.ID;
            obj[11] = val12;
            MySqlParameter[] parameter = (MySqlParameter[])obj;
            return(dbHelper.Execute(sql, parameter));
        }