安装了 NuGet 包 -> Microsoft.EntityFrameworkCore.Tools
帮助 about_entityframeworkcore
_/\__
---==/ \\
___ ___ |. \|\
| __|| __| | ) \\\
| _| | _| \_/ | //|\\
|___||_| / \\\/\\
话题 about_EntityFrameworkCore
简短描述 提供有关 Entity Framework Core 包管理器控制台工具的信息。
详细描述 本主题描述 Entity Framework Core 包管理器控制台工具。有关 Entity Framework Core 的信息,请参阅https://docs.efproject.net。
The following Entity Framework Core commands are available.
Cmdlet Description
-------------------------- ---------------------------------------------------
Add-Migration Adds a new migration.
Drop-Database Drops the database.
Get-DbContext Gets information about a DbContext type.
Remove-Migration Removes the last migration.
Scaffold-DbContext Scaffolds a DbContext and entity types for a database.
Script-DbContext Generates a SQL script from the current DbContext.
Script-Migration Generates a SQL script from migrations.
Update-Database Updates the database to a specified migration.
还请参见 Add-Migration Drop-Database Get-DbContext Remove-Migration Scaffold-DbContext Script-DbContext Script-Migration Update-Database