DAL/BugresultDAL.cs

(完整代码) 973B

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

namespace CRM.DAL
{
    public class BugresultDAL : DALBase
    {
        public BugresultDAL()
        {
            this.ConnStr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
        }
        public int AddUpdate(int Id, string Name, SqlTransaction tran)
        {
            this.ParameterList.Add("Id", Id);
            this.ParameterList.Add("Name", Name);

            string sqlstr = string.Empty;
            if (Id == 0)
            {
                sqlstr = "Insert into Bugresult(Name) values(@Name) select @@identity";
            }
            else
            {
                sqlstr = "Update Bugresult set Name=@Name where Id=@Id";
            }
            return this.ExecuteNonQueryFromSQL(tran,sqlstr);
        }
    }
}

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

AI 解读 AI

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

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