CmdID

CmdID / Commands

dotnet-ef

Perform design-time development tasks for Entity Framework Core. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Update the database to a specified migration

dotnet ef database update migrationIdentify

Drop the database

dotnet ef database dropIdentify

List available DbContext types

dotnet ef dbcontext listIdentify

Generate code for a DbContext and entity types for a database

dotnet ef dbcontext scaffold connection_string providerIdentify

Add a new migration

dotnet ef migrations add nameIdentify

Remove the last migration, rolling back the code changes that were done for the latest migration

dotnet ef migrations removeIdentify

List available migrations

dotnet ef migrations listIdentify

Generate an SQL script from migrations range

dotnet ef migrations script from_migration to_migrationIdentify