SqlConnection conn=DB.getConnection();
SqlCommand cmd = new SqlCommand("insert into guestInfo(userName,memorialway,Email,Content,ImageAddress) values('" + userName + "','" + memorialway + "','" + Email + "','" + Content + "','" + imageAddress + "')", conn);
conn.Open();当前上下文中不存在名称“DB”。哪里错了?高手指点
SqlCommand cmd = new SqlCommand("insert into guestInfo(userName,memorialway,Email,Content,ImageAddress) values('" + userName + "','" + memorialway + "','" + Email + "','" + Content + "','" + imageAddress + "')", conn);
conn.Open();当前上下文中不存在名称“DB”。哪里错了?高手指点
这类是哪来的using 了么。。动态类的话要new DB()..