1

All the demos and documentation I've seen online about Entity Framework 5 have been using Visual Studio 2012. Is there any way to use Entity Framework 5 from Visual Studio 2010? If so, do I need to use MVC4.5 or can I use an MVC4 project template still?

4

1 回答 1

1

From the EF Blog

Compatibility

This version of the NuGet package is fully compatible with Visual Studio 2010 and Visual Studio 2012 and can be used for applications targeting .NET 4.0 and 4.5.

Some features are only available when writing an application that targets .NET 4.5. This includes enum support, spatial data types, table-valued functions and the performance improvements.

I was able to add EF5 to an MVC4 project through NuGet. You can certainly use MVC 4, you just won't get all the new features unless you're on VS2012.

于 2012-10-02T15:42:37.087 回答