How update project from EF 4.3.1 to EF 5.0

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
Pauli
Posts: 10
Joined: Thu 11 Oct 2012 14:21
Location: Finland

How update project from EF 4.3.1 to EF 5.0

Post by Pauli » Sun 23 Dec 2012 00:27

Hi
I have a test project which I have updated to EF version 5.0 but I can not create enum type in Entity developer.

Is there any instruction how update project from EF 4.3.1 to EF 5.0?

Pauli
Posts: 10
Joined: Thu 11 Oct 2012 14:21
Location: Finland

Re: How update project from EF 4.3.1 to EF 5.0

Post by Pauli » Tue 25 Dec 2012 12:07

Can somebody help because I have production project that I want to upgrade to EF 5.0. I can upgrade Entity framework but Entity developer's Model Explorer does not work like in Model which is created as EF 5.0. For example New Enum Type menu is not enabled. I don't know what is wrong.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: How update project from EF 4.3.1 to EF 5.0

Post by Shalex » Tue 25 Dec 2012 15:24

Right click on the designer surface of your *.edml model > Model Settings > Model > General > set the "Entity Framework version:" drop-down list value to "Entity Framework 5.0".

Pauli
Posts: 10
Joined: Thu 11 Oct 2012 14:21
Location: Finland

Re: How update project from EF 4.3.1 to EF 5.0

Post by Pauli » Fri 28 Dec 2012 12:08

Thank you for answer. I updated EF 4.3.1 to EF 5.0 but drop-down list does not have value "Entity Framework 5.0". Is it because project's target framework is .NET Framework 4? I don't want to force customer to install .NET 4.5. I read that EF 5.0 can be used on .NET 4.0 and 4.5 which means that I can use EF 5.0. Or is it better to use EF 4.3.1?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: How update project from EF 4.3.1 to EF 5.0

Post by Shalex » Sat 29 Dec 2012 13:20

The "Entity Framework 5.0" option is available only on a workstation where .NET Framework 4.5 is installed because the EFv5.0 functionality (e.g.: Enum Type support) is included in .NET 4.5.

Post Reply