GGHidezhang 2015-12-20 09:41 采纳率: 100%
浏览 1610
已采纳

VISUAL2013找不到类怎么办,已经添加进去了还是找不到SQLHELP类

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DAL;
using System.Data.SqlClient;

namespace 图书借阅管理系统
{
    public partial class 登陆 : Form
    {
        public 登陆()
        {
            InitializeComponent();
        }

        private void label4_Click(object sender, EventArgs e)
        {
        }

        private void 登陆_Load(object sender, EventArgs e)
        {
            Random r = new Random();
            label4.Text = r.Next(1000, 9999).ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int role;
            if(textBox3.Text==label4.Text)
            {
                if (radioButton1.Checked) role = 0;
                else role = 1;
                SqlParameter[] p ={
                                      new SqlParameter("@UserName",textBox1.Text),
                                      new SqlParameter("@PassWord",textBox2.Text),
                                      new SqlParameter("@Role",role)
                                  };
                SqlDataReader dr=SQLHELPER.(到这就提示不存在sqlhelp)
            }
        }
    }
}

图片说明
图片说明

  • 写回答

1条回答 默认 最新

  • threenewbee 2015-12-20 11:19
    关注

    注意sqlhelper里的namespace是不是namespace 图书借阅管理系统
    如果不是,加上对应的using

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
  • ¥15 算法题:数的划分,用记忆化DFS做WA求调
  • ¥15 chatglm-6b应用到django项目中,模型加载失败
  • ¥15 CreateBitmapFromWicBitmap内存释放问题。
  • ¥30 win c++ socket
  • ¥15 C# datagridview 栏位进度