locked
MVC5 Scaffolding, Data Context Class Dropdown Empty RRS feed

  • Question

  • User-1999710937 posted

    Framework .NET 4.5.1, MVC5, EntityFramework 6.1.3

    I'm trying to add a new scaffolding item, and when i do, the dropdown is empty except for a single model that i happen to create before i upgraded from MVC4 to MVC5.

    I've seen a few other topics on this, and most people say you just have to rebuild it. I've rebuilt and created new models and none of them i can get to show up in the Data Context Class dropdown menu.

    Monday, June 12, 2017 2:33 PM

All replies

  • User2119946224 posted

    Not able to reproduce this exception. If possible provide me the code.

    Monday, June 12, 2017 3:47 PM
  • User1771544211 posted

    Hi somerandomdeveloper,

    I'm trying to add a new scaffolding item, and when i do, the dropdown is empty except for a single model that i happen to create before i upgraded from MVC4 to MVC5.

    Could you please share the code of your model here?

    And could you please share the code in the view and the action code of the new scaffolding item? I want to check if I can modify the code to make it work.

    Best Regards,

    Jean

    Tuesday, June 13, 2017 2:13 AM