很菜的问题! 麻烦帮忙!
下面一段代码,为何调试,显示
1.找不到类型或命名空间名称“SqlConnection”(是否缺少 using 指令或程序集引用?)
2. 找不到类型或命名空间名称“myCommand”(是否缺少 using 指令或程序集引用?)
private void getpass(object sender, System.EventArgs e)
{
//this.Message.Text=buildRndCodeAll(8);
SqlConnection conn=new SqlConnection();
MyDb dbconn=new MyDb();
dbconn.ConnectSQL(conn);
SqlCommand myCommand=new SqlCommand();
myCommand.CommandTimeout = 20;
myCommand.Connection=conn;
如何修改!!