Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个新的SqlCE 4.0 sdf 数据库,但我不确定我需要使用哪个连接提供程序?
我单独从微软下载了CE4.0。...那么我们应该使用新的提供程序吗?还是我们使用 3.5 提供程序?
示例连接字符串如下所示:
<add name="integration" connectionString="Data Source=testdb.sdf" providerName="System.Data.SqlServerCe.4.0" />
您还应该引用 System.Data.SqlServerCe.dll 和它提供的 ADO.NET 类。