
o|-output-dir The directory (and sub-namespace) to usĮ. > dotnet ef migrations add Usage: dotnet ef migrations add t|-table >TABLE_NAME The project to use. o|-output-dir The directory to put files in. d|-data-annotations Use attributes to configure the model ( > dotnet ef dbcontext scaffold Usage: dotnet ef dbcontext scaffold > dotnet ef dbcontext list Usage: dotnet ef dbcontext list > dotnet ef dbcontext info Usage: dotnet ef dbcontext info > dotnet ef database update Usage: dotnet ef database update msbuildprojectextensionspath The MSBuild project extensions path. s|-startup-project The startup project to use. 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
