dotnet-ef summary

Instal dotnet-ef

dotnet tool install -g dotnet-ef --version 3.1.1

Add Migration

dotnet-ef migrations add migration-name [-c SomeDbContext]

Update Database

dotnet-ef update database [migration-name] [-c SomeDbContext]

Revert All Database Update

dotnet-ef update database 0 [-c SomeDbContext]

Comments

  1. Markdown is allowed. HTML tags allowed: <strong>, <em>, <blockquote>, <code>, <pre>, <a>.