简体   繁体   中英

SQL server compact 3.5 namespace not found

I want to use SQL server compact 3.5, but intellisense is not showing System.Data.SqlServerCe namespace.. it says type or namespace 'SqlServerCe' does not exist in 'System.Data' namespace (are you missing any Assembly reference?)

Which Assembly needs to be referenced?

or do I need to use any other namespace to use SQL Server Compact 3.5?

I have Sql Server 2005 Standard and Express installed, and VC# 2010.

Please provide some reference link to work with SQL Server CE 3.5..

在“ Add Reference ,如果您没有在屏幕截图中看到引用,请浏览到C:\\Program Files (x86)\\Microsoft SQL Server Compact Edition\\v3.5\\Desktop文件夹

The SQL Server Compact Edition (CE) libraries live in the System.Data.SqlServerCe namespace, which is in the System.Data.SqlServerCe assembly. This assembly is not referenced by default - you need to explicitly add a reference to it before you can use it!

在此输入图像描述

Once you have that in place, you will also need a

using System.Data.SqlServerCe;

at the top of your C# file using SQL Server CE.

Check out Erik EJ's blog for a great reference for all things SQL Server CE

You need to add a reference to the 'System.Data.SqlServerCe' assembly. You can download and install CE from here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM