Updating DB Scaffold

To update the scaffold you need to set the force flag:

Scaffold-DbContext "Server=;Database=;user id=;password=;Trusted_Connection=True;MultipleActiveResultSets=true;Integrated Security=False" Microsoft.EntityFrameworkCore.SqlServer -f -OutputDir Models

note the -f

Leave a Reply

Your email address will not be published. Required fields are marked *