I am getting the following Error when trying to Scaffold-DBContext. I have installed the Packages EntityFrameworkCore, Core.Design, SqlServer.Design, Core.Tools. The command I am running is.
Scaffold-DbContext "Data Source=.;Database=StudentApp;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
The Error message I am getting is
You cannot call a method on a null-valued expression.At line:1 char:1Scaffold-DbContext "Data Source=.;Database=StudentApp
CategoryInfo : InvalidOperation: (:) [Scaffold-DbContext], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull,Scaffold-DbContext
I am not sure what to try. I have used the ASP.Net Angula App template when creating this solution. Any help would be appreciated.