usr021986
usr021986

Reputation: 3511

Can I use Entity Framework 5 with VS 2013

If i want to use EF5 with VS 2013 to create sample asp.net application using Grid view and Entity Data source , is it possible ? If yes, is there any post i can follow to create a sample application.


I am getting below error while using EF6 so that i would be able to use Entity Data Source easily.

I have already referred http://blogs.msdn.com/b/webdev/archive/2014/02/28/announcing-the-release-of-dynamic-data-provider-and-entitydatasource-control-for-entity-framework-6.aspx article but have not got resolution for my problem.


Error Message while using EF6[1]


So I wanted to check if i am creating a new application, can i use EF5 with VS 2013 ?

Upvotes: 0

Views: 484

Answers (1)

user1269016
user1269016

Reputation:

You should uninstall the current version of Entity Framework, then install the version you would like.

Uninstall-package EntityFramework
Install-Package EntityFramework -version 5.0.0

You can also use the -force command at the end of the uninstall command to ignore dependencies.

Note that if you are planning on using asp.net identity, this will not work with Entity Framework 5

EDIT Here is a screenshot after uninstalling the EntityFramework 6, and then installing EntityFramework 5 with the commands I gave you.

enter image description here

Upvotes: 1

Related Questions