找不到类型或名称空间名称"dbconnection"(您是否缺少using指令或程序集引用?) [英] The type or namespace name 'dbconnection' could not be found (are you missing a using directive or an assembly reference?)

查看:290
本文介绍了找不到类型或名称空间名称"dbconnection"(您是否缺少using指令或程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

The type or namespace name ''dbconnection'' could not be found (are you missing a using directive or an assembly reference?)

源错误:

The type or namespace name ''dbconnection'' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 12: public partial class Enquiry_Ind : System.Web.UI.Page<br />
Line 13: {<br />
Line 14:     dbconnection dbcon = new dbconnection();

推荐答案

您必须导入以下命名空间:

using System.Data.Common;
You have to import the following namespace :

using System.Data.Common;


这篇关于找不到类型或名称空间名称"dbconnection"(您是否缺少using指令或程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆