Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Team

My Scoffold-DbContext command does not seem to run and getting an exception. Basically i have an updated table definition on my database. I want my table definition to appear on my Model folder within MVC web application.

What I have tried:

Install-Package Microsoft.EntityFrameworkCore.Tools
Install-Package Microsoft.EntityFrameworkCore.SqlServer

These appear to already exist and run this command,
Scaffold-DBContext "Data Source=(LocalDb)\MSSQLLocalDB; Catalog=eNtsaRegistration;Integrated Security=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
Posted
Updated 10-May-20 22:08pm

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900