无法找到命名空间“System.Data.SqlServerCe” [英] Cannot find namespace 'System.Data.SqlServerCe'
本文介绍了无法找到命名空间“System.Data.SqlServerCe”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做了包括 System.Data.SqlServerCe
的dll,把使用System.Data.SqlServerCe;
在我code,但是当我打开网页。NET我得到:
I did include the System.Data.SqlServerCe
dll, put using System.Data.SqlServerCe;
in my code, but when I open the .NET page I get:
类型或命名空间名称'SqlServerCe不存在的
命名空间System.Data这'(是否缺少程序集引用?)
The type or namespace name 'SqlServerCe' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
我中堂不知道如何解决这个问题。先谢谢了。
I have nave no idea how to fix this. Thanks in advance.
推荐答案
这是可以解决的,确认以下2点:
This can be solved confirming following 2 points:
- 检查您是否已经拥有
System.Data.SqlServerCe
命名空间的加入
在参考您的应用程序文件夹中。如果它不存在,你
可以右击引用文件夹并选择添加引用
选项。从弹出的窗口中转至 .NET选项卡并选择System.Data.SqlServerCe
从列表中单击确定将命名空间添加到
项目。 - 如果你是第1步,添加
使用System.Data.SqlServerCe OK;
来
您code顶部的隐藏文件,它使用
System.Data.SqlServerCe命名空间。
- Check whether you already have
System.Data.SqlServerCe
namespace added to the References folder of your application. If its not there you may right click the References folder and select Add references option. From the popup window go to .Net tab and selectSystem.Data.SqlServerCe
from the list and click OK to add the namespace to the project. - If you are OK with step 1, add
using System.Data.SqlServerCe;
to the top of your code behind file which uses the System.Data.SqlServerCe namespace.
这篇关于无法找到命名空间“System.Data.SqlServerCe”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文