79109653

Date: 2024-10-21 10:40:09
Score: 2
Natty:
Report link

If you rename the DbContext it forces you to use, i.e. "NorthWindEntities" to "NorthWindEntities2", (click on the class name and do CTRL+R) this will clear the Data context class field and thus allowing you to scaffold the controller/view without a DbContext.

This is most likely a bug of which is never going to get fixed. The moron who designed the UI probably has never heard of ViewModels.

The above answers dont really provide a solution, just an alternative.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Lane