Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

.NET Core Database First Scaffolding

$
0
0

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.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>