Open the Package Manager Console (PMC) by selecting View -> Other Windows -> Package Manager Console from the Visual Studio menu.
In the PMC, ensure that the default project is set to the project that contains your DbContext. You can use the Set-DefaultProject command to set the default project if needed.
Run the Add-Migration command followed by a name for your migration. For example, to add a migration called "InitialCreate", you would run the following command: