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的脚本我们可以使用脚本到数据库取执行 |

View File

@@ -0,0 +1,9 @@
| | | | |
|---|---|---|---|
||OS|是否开源|目的|
|.NET Framework|Windows|否|构建Windows应用程序构建运行在IIS上的Web应用程序|
|.NET Core|Windows, Linux, macOS|是|构建跨平台命令行应用程序、ASP.NET Core应用程序、云服务|
|Xamarin|iOS, Android, macOS|是|构建iOS、Android移动应用程序、macOS桌面应用程序|
|.NET Standard|N/A|是|创建可以被所有.NET实现(如.NET Core和.NET Framework)所引用的类库|
\> 来自 \<[https://blog.csdn.net/chengbin0602/article/details/80424520](https://blog.csdn.net/chengbin0602/article/details/80424520)\>