Can I use the upcoming Entity Framework 4 with aspnet mvc 2 since mvc is based on 3.5?
+4
A:
If you target .NET 4.0 with your ASP.NET MVC 2.0 Project...you shouldn't have any issues using the new version of Entity Framework.
...or at least I haven't had any issues as of yet.
Justin Niessner
2009-12-21 21:56:19
MVC 2 is build on 3.5, so wouldnt you have to use 3.5?
codie
2009-12-21 22:41:52
Nope, you don't have to. All versions of ASP.NET MVC are compatible with both .NET 3.5 SP1 and .NET 4.
Eilon
2010-01-09 23:56:51
+2
A:
Sure, you can always create a separate project that will contain the reference to EF4 and then just reference that project from your MVC project. Depending on your architecture, it might be a good idea to separate these concerns anyways.
Also remember, the new versions of the .NET framework are backwards compatible, so any project that needs to reference EF4 should still work with code that needs 3.5.
The Matt
2009-12-21 21:56:36