简体   繁体   中英

Entity Framework from .NET 3.5 with SQL CE 4.0

Is there a way to get the Entity Framework that ships with .NET 3.5 to work with SQL Compact 4.0?

I have a project that relies on .NET 3.5, and I can't move to .NET 4.0 yet, so Entity Framework 4 isn't an option. My existing code base works with .NET 3.5/EF 1/SQLCE 3.5 SP2, but on multi-threaded machines I get crashes now and then.

I'd like to move to SQL CE 4.0 to see if that resolves these issues.

After doing additional research, the answer to this is no. SQL CE 4.0 will only work with EF 4.

尝试对我在此处描述的edmx文件和连接字符串进行更改: http ://erikej.blogspot.com/2010/11/using-entity-framework-with-sql-server.html

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