MVC scaffolding does not support Entity Framework 6 or later

MrBeanzy

Just upgraded to Entity Framework 6 to take a look. I'm using MVC4.

But i recieve this message when trying to make a controller from a model and context.

MVC scaffolding does not support Entity Framework 6 or later

5had3sofQu4rtz

Thought this could use some expanding :) As mentioned above ASP.NET MVC 4 scaffolding does not support EF6 or higher. This means that an older EF, compatible with MVC 4 will have to be installed. To do this:

  1. Open the Package Manager Console:
    • select TOOLS -> Library Package Manager -> Package Manager Console
  2. In the Package Manager Console, uninstall the current EF package by executing the following command:

    UnInstall-Package EntityFramework -Version <version number>

    *Where <version number> is the version number of the EF currently installed.
    *NOTE: to find out what EF version is installed, run the following command in the Package Manager Console:

    Get-Package EntityFramework

  3. To avoid potential metadata problems the providers entry in the Web.config file will need to be removed:

    • Open the Web.config file in the project directory.
    • Delete the following lines:

      <providers> <provider invariantName=System.Data.SqlClient type=System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer /> </providers>

  4. Now, in the Package Manager Console Execute the following command to install Entity Framework 5.0.0:

    Install-Package EntityFramework -Version 5.0.0

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Does Entity Framework 6 support .NET 4.0?

From Dev

When will Breeze support Entity Framework 6?

From Dev

Entity Framework Core - Customise Scaffolding

From Dev

Entity Framework 1 to many Scaffolding

From Dev

Does/Will Entity Framework 6 support the new Sql Azure & Azure Active Directory Authentication

From Dev

Does Entity Framework support parallel async queries?

From Dev

Does Entity Framework support Multi-Threading?

From Dev

Scaffolding Identity framework mvc core

From Dev

Struggling using MVC 5 and Entity Framework 6

From Dev

Is controller scaffolding missing in MVC 6?

From Dev

Does MVC6 support Precompiled Views?

From Dev

MVC - Entity Framework - Where does this belong?

From Dev

Does DotNetOpenAuth 4.3 work with Entity Framework 6?

From Dev

Will Orchard CMS support MVC4 with Entity Framework

From Dev

.Net Entity Framework scaffolding for inherited classes

From Dev

Using Entity Framework 6 class library project with MVC 6

From Dev

Can MVC 5 scaffolding not add selectlist for many-many relations? (Add Scaffold - MVC 5 Controller with views, using Entity Framework)

From Dev

Can MVC 5 scaffolding not add selectlist for many-many relations? (Add Scaffold - MVC 5 Controller with views, using Entity Framework)

From Dev

does entity framework support User Defined Data Types?

From Dev

Does Entity Framework Code First support this kind of mapping?

From Dev

Does Entity Framework 6.1 support an XML data type natively?

From Dev

Does Entity Framework support differing data types in the model?

From Dev

Does Entity Framework support Oracle 10g?

From Dev

Entity Framework connect to Oracle: ODP for .NET "does not support time"

From Dev

Entity framework 2.0 does not support DNX version 5.0

From Dev

Updating related Data with Entity Framework 6 in MVC 5

From Dev

MVC 5 Entity Framework 6 Execute Stored Procedure

From Dev

MVC 5 Entity Framework 6 - deleting nested / hierarchical data

From Dev

Entity Framework 7 Database First configuration (MVC 6)

Related Related

  1. 1

    Does Entity Framework 6 support .NET 4.0?

  2. 2

    When will Breeze support Entity Framework 6?

  3. 3

    Entity Framework Core - Customise Scaffolding

  4. 4

    Entity Framework 1 to many Scaffolding

  5. 5

    Does/Will Entity Framework 6 support the new Sql Azure & Azure Active Directory Authentication

  6. 6

    Does Entity Framework support parallel async queries?

  7. 7

    Does Entity Framework support Multi-Threading?

  8. 8

    Scaffolding Identity framework mvc core

  9. 9

    Struggling using MVC 5 and Entity Framework 6

  10. 10

    Is controller scaffolding missing in MVC 6?

  11. 11

    Does MVC6 support Precompiled Views?

  12. 12

    MVC - Entity Framework - Where does this belong?

  13. 13

    Does DotNetOpenAuth 4.3 work with Entity Framework 6?

  14. 14

    Will Orchard CMS support MVC4 with Entity Framework

  15. 15

    .Net Entity Framework scaffolding for inherited classes

  16. 16

    Using Entity Framework 6 class library project with MVC 6

  17. 17

    Can MVC 5 scaffolding not add selectlist for many-many relations? (Add Scaffold - MVC 5 Controller with views, using Entity Framework)

  18. 18

    Can MVC 5 scaffolding not add selectlist for many-many relations? (Add Scaffold - MVC 5 Controller with views, using Entity Framework)

  19. 19

    does entity framework support User Defined Data Types?

  20. 20

    Does Entity Framework Code First support this kind of mapping?

  21. 21

    Does Entity Framework 6.1 support an XML data type natively?

  22. 22

    Does Entity Framework support differing data types in the model?

  23. 23

    Does Entity Framework support Oracle 10g?

  24. 24

    Entity Framework connect to Oracle: ODP for .NET "does not support time"

  25. 25

    Entity framework 2.0 does not support DNX version 5.0

  26. 26

    Updating related Data with Entity Framework 6 in MVC 5

  27. 27

    MVC 5 Entity Framework 6 Execute Stored Procedure

  28. 28

    MVC 5 Entity Framework 6 - deleting nested / hierarchical data

  29. 29

    Entity Framework 7 Database First configuration (MVC 6)

HotTag

Archive