DAL/BuginfoDAL.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using Common;
using System.Data.SqlClient;

namespace DAL
{
    public class BuginfoDAL : DALBase
    {
        public BuginfoDAL()
        {
            this.ConnStr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
        }
        public int AddUpdate(int Id,int Softtypeid,string Title,string bugInfo,string updateinfo,string causeinfo,int bugresultid,int Opid,DateTime Opdate,int Upopid,DateTime Upopdate)
        {
            this.ParameterList = new SqlParameterList();
            this.ParameterList.Add("Id", Id);
            this.ParameterList.Add("Softtypeid", Softtypeid);
            this.ParameterList.Add("Title", Title);
            this.ParameterList.Add("bugInfo", bugInfo);
            this.ParameterList.Add("updateinfo", updateinfo);
            this.ParameterList.Add("causeinfo", causeinfo);
            this.ParameterList.Add("bugresultid", bugresultid);
            this.ParameterList.Add("Opid", Opid);
            this.ParameterList.Add("Opdate", Opdate);
            this.ParameterList.Add("Upopid", Upopid);
            this.ParameterList.Add("Upopdate", Upopdate);

            string sqlstr = string.Empty;
            if (Id == 0)
            {
                sqlstr = "Insert into buginfo(Softtypeid,Title,bugInfo,bugresultid,Opid,Upopid,Opdate) values(@Softtypeid,@Title,@bugInfo,@bugresultid,@Opid,@Upopid,@Opdate)";
            }
            else
            {
                sqlstr = "Update buginfo set Softtypeid=@Softtypeid,Title=@Title,bugInfo=@bugInfo,Opid=@Opid,Upopid=@Upopid,Opdate=@Opdate where Id=@Id";
            }
            return this.ExecuteNonQueryFromSQL(sqlstr);
        }

        public int AddUpdate(int Id, int Upopid, DateTime Upopdate, string updateinfo, string causeinfo)
        {
            this.ParameterList = new SqlParameterList();
            this.ParameterList.Add("Id", Id);
            this.ParameterList.Add("Upopid", Upopid);
            this.ParameterList.Add("Upopdate", Upopdate);
            this.ParameterList.Add("updateinfo", updateinfo);
            this.ParameterList.Add("causeinfo", causeinfo);

            string sqlstr = string.Empty;
            sqlstr = "Update buginfo set Upopid=@Upopid,Upopdate=@Upopdate,updateinfo=@updateinfo,causeinfo=@causeinfo where Id=@Id";
            return this.ExecuteNonQueryFromSQL(sqlstr);
        }

        public int HuiFu(int Id, string Name)
        {
            this.ParameterList = new SqlParameterList();
后面还有 22 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。