Update from Sync Service

This commit is contained in:
FNS Service
2026-04-15 23:34:33 +08:00
commit 230c7bc2be
254 changed files with 5420 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
**EF Core Migration**
 **手动命令行的方式**
Update-Database -Verbose -c safeMonitorDbContext
| | | |
| ------------------------------------------- | --------------------------------- | ------------------------------- |
| VSCode | VS2017 | 说明 |
| dotnet ef migrations add InitialCreate | Add-Migration | 对当前EF实体模型增加一个配置文件 |
| dotnet ef database update | Update-Database | 对当前版本进行更新 |
| dotnet ef migrations remove | Remove-Migration | 删除最新的Migration |
| dotnet ef database update LastGoodMigration | Update-Database LastGoodMigration | 对指定版本进行更新 |
| dotnet ef migrations script | Script-Migration | 对当前更新生成一个sql的脚本我们可以使用脚本到数据库取执行 |