Update from Sync Service
This commit is contained in:
12
dotNet知识库/EF CORE/EF Core Migration.md
Executable file
12
dotNet知识库/EF CORE/EF Core Migration.md
Executable 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的脚本,我们可以使用脚本到数据库取执行 |
|
||||
9
dotNet知识库/EF CORE/NET Core和.NET Standard 比较.md
Executable file
9
dotNet知识库/EF CORE/NET Core和.NET Standard 比较.md
Executable 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)\>
|
||||
Reference in New Issue
Block a user