﻿Scaffold DbContext and Model Classes to the Models folder
This step will create the Model classes and DbContext (class used by ASP.NET to connect to the database) files


1. In VS, from the main menu go to Tools --> NuGet Package Manager --> Package Manager Console

2. In the window that opens (towards the bottom of the main window), copy and paste the following at the PM prompt:

		Scaffold-DbContext "Server=(localdb)\ProjectsV13;Database=GoMovies2020;Trusted_Connection=True;MultipleActiveResultSets=true" Microsoft.EntityFrameworkCore.SqlServer -StartupProject GoMovies2020.Web -Project GoMovies2020.Shared -OutputDir Models -Context GoMovies2020DbContext

3. Press the Enter key and be patient

4. Once done you should see the new files generated in the GoMovies2020.Shared\Models folder.