且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2012中的SQL Server CE问题

更新时间:2023-02-03 18:33:45

抬起头,我开始使用它.

在VS2012 Add Reference上,您必须浏览并寻找;
Heads up, I got it working.

On VS2012 Add Reference, you have to browse and look for;
C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop

,然后选择

System.Data.SqlServerCe.dll

注意,以上内容适用于SQLCE 4.0.以下是更多详细信息.

将其导入您的项目中,您就可以开始了.只要确保您正在为所使用的数据库导入正确的版本即可.

SQLCE 4.0

Note, the above was for SQLCE 4.0. More details below.

Import it on your project and you''re good to go. Just make sure you''re importing the right version for the database you are using.

SQLCE 4.0

C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop



SQLCE 3.5



SQLCE 3.5

C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop


与此相同.即使在我导入System.Data.SqlServerCe之后,sqlceconnection,sqlcecommand和其他命令也不可用.
Same here. Even after I do Imports System.Data.SqlServerCe, sqlceconnection, sqlcecommand and others are not available.