
dry-run Show which database would be dropped, but don't drop it. > dotnet ef database drop Usage: dotnet ef database drop Let's see available options for each command. Scaffolds a DbContext and entity types for a database. Updates the database to a specified migration. The following table lists all EF commands and sub commands. Use "dotnet ef -help" for more information about a command.Īs you can see above, there are three main EF commands available: database, dbcontext and migrations. Migrations Commands to manage migrations. prefix-output Prefix output with level.ĭatabase Commands to manage the database.ĭbcontext Commands to manage DbContext types. C:> dotnet ef -helpĮntity Framework Core.

Open command prompt and navigate to your project's root folder and enter dotnet ef -help to list EF Core commands, as shown below. NET Core Command List Interface to execute entity framework core commands.


Home Command Line Interface Commands for Migrations
