DAL/UserTXDAL.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Model;
namespace DAL
{
    public class UserTXDAL
    {
        public static int insertUserTXInfo(UserTXMOD usertx)
        {
            SQLHelper sqh = new SQLHelper();
            SqlParameter[] para = new SqlParameter[] { new SqlParameter("@zsid", SqlDbType.Int), new SqlParameter("@username", SqlDbType.NVarChar, 50) };
            para[0].Value = usertx.Zsid;
            para[1].Value = usertx.UseName;


            try
            {
                int i = sqh.ExecuteNonQuery(para, "Pro_insertUserTXInfo");
                return i;
            }
            catch (Exception ex)
            {
                throw ex;
            }

        }
        public static bool selectUserTXInfo(UserTXMOD usertx)
        {
            SQLHelper sqh = new SQLHelper();
            KSSetMOD stmod = new KSSetMOD();
            SqlDataReader dr = null;
            SqlParameter[] para = new SqlParameter[] { new SqlParameter("@zsid", SqlDbType.Int), new SqlParameter("@username", SqlDbType.NVarChar, 50) };
            para[0].Value = usertx.Zsid;
            para[1].Value = usertx.UseName;
            try
            {
                dr = sqh.SqlExecuteReader(para, "Pro_selectUserTX");
                if (dr.HasRows)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                dr.Close();
                sqh.connClose();
            }
        }
后面还有 2 行代码,购买后查看完整代码

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

AI 解读 AI

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

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