Forrest logo
back to context overview

dotnet-ef

List of commands for dotnet-ef:

  • dotnet-ef:tldr:019e3 dotnet-ef: List available `DbContext` types.
    $ dotnet ef dbcontext list
    try on your machine
    explain this command
  • dotnet-ef:tldr:05498 dotnet-ef: Update the database to a specified migration.
    $ dotnet ef database update ${migration}
    try on your machine
    explain this command
  • dotnet-ef:tldr:26ec8 dotnet-ef: Add a new migration.
    $ dotnet ef migrations add ${name}
    try on your machine
    explain this command
  • dotnet-ef:tldr:5f081 dotnet-ef: Remove the last migration, rolling back the code changes that were done for the latest migration.
    $ dotnet ef migrations remove
    try on your machine
    explain this command
  • dotnet-ef:tldr:60d1e dotnet-ef: Generate a SQL script from migrations range.
    $ dotnet ef migrations script ${from_migration} ${to_migration}
    try on your machine
    explain this command
  • dotnet-ef:tldr:ca109 dotnet-ef: List available migrations.
    $ dotnet ef migrations list
    try on your machine
    explain this command
  • dotnet-ef:tldr:d0f69 dotnet-ef: Generate code for a `DbContext` and entity types for a database.
    $ dotnet ef dbcontext scaffold ${connection_string} ${provider}
    try on your machine
    explain this command
  • dotnet-ef:tldr:db9e7 dotnet-ef: Drop the database.
    $ dotnet ef database drop
    try on your machine
    explain this command
back to context overview