简体   繁体   English

带有SQL CE 4.0的.NET 3.5中的实体框架

[英]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? 有没有办法让.NET 3.5附带的实体框架与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. 我有一个依赖于.NET 3.5的项目,但是我现在还不能移至.NET 4.0,因此不能选择Entity Framework 4。 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. 我现有的代码库可与.NET 3.5 / EF 1 / SQLCE 3.5 SP2一起使用,但是在多线程计算机上,我有时会崩溃。

I'd like to move to SQL CE 4.0 to see if that resolves these issues. 我想转到SQL CE 4.0,看看是否可以解决这些问题。

After doing additional research, the answer to this is no. 经过更多研究后,答案是否定的。 SQL CE 4.0 will only work with EF 4. SQL CE 4.0仅适用于EF 4。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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