Jul 10, 2019 06:45 AM|Sherry Chen|LINK
Hi elahi1mahdi ,
No parameterless constructor defined for this object
The error message was slightly misleading. There was a parameter less constructor required but it was not the model it was the
DbContext that needs it.
It's a tooling error. Most likely, you're running Visual Studio 2015, which doesn't have full .NET Core support. Basically, in previous versions of EF, DbContext had a parameterless constructor, and this version of the scaffold generator
is depending on that. In EF Core, DbContext does not have a parameterless constructor, so the generator is choking on that.
Refer to the following links which may be helpful for your scenario
Best Regards ,