The default is as follows:

Sequentially we will enter two commands into this window. First run the command:

Add-Migration Initial 

This command will add a new migration to the project.

Then execute the command:

 Update-Database 

This Initial migration command will actually generate the database.

As a result, we can find two MobilesDB.mdf and MobilesDB.ldf files in the current user's folder on the C drive ( C:\Users\[Имя_пользователя] ), which represent the database.

But I need to create elsewhere

    1 answer 1

    Create the database yourself manually and connect it in the appsettings.json file (just replace the address of the old database)