简体   繁体   中英

Sql Server Compact 4.0 provider missing

I have been looking into using SQL Compact Editition 4.0 in a .NET 4.0 solution and I was doing fine until I decided to rename a bunch of projects and their namespaces. Since then, I lost the ability generate an EDMX model from an SDF file.

Usually, I'd add the EDMX as new item in my project, then "Generate from database" and from there I could create the SDF file using SQL Server Compact 4.0 provider. Of course this would generate an empty model but the provider was nonetheless available.

Now, all I get it:

没有CE!

I've tried uninstalling/installing SQL CE and its SP1, Visual Studio SQL CE 4.0 Tools SP1, no go.

Do I need to reformat my system drive ?

The 4.0 Provider is only available in Web type Projects, not class library and desktop Projects. Workaround is to add a web type project and the move the .edmx afterwards (and the corresponing connection string in app.config/web.config)

Ended up uninstalling VS2010 and everything related to development on my workstation and installed this VS2010 addin: http://sqlcetoolbox.codeplex.com/

Allows you to export an EDMX model into project type of any kind. :)

(Which you seem to be the author of, realized that after posting this, lol)

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