<?xml version="1.0" encoding="utf-16"?><rss version="2.0"><channel><title>HueiFeng</title><description>冯辉,HueiFeng,.NET,.NET Core,Docker,k8s</description><link>https://hueifeng.azurewebsites.net/</link><pubDate>Tue, 07 Apr 2026 21:09:20 GMT</pubDate><copyright>(c) {year} Moonglade</copyright><generator>Moonglade v11.2-preview</generator><item><title>【Azure DevOps系列】Azure DevOps构建.NET EFCore应用程序</title><link>https://hueifeng.azurewebsites.net/post/2021/5/30/azure-devopsazure-devopsnet-efcore</link><description>本章我们将看到如何通过Azure DevOps使用EFCore CLI工具将我们的EFCore应用程序进行数据库重建，当然这种操作我不建议使用，建议使用CLI生成sql脚本形式进行发布并迁移。
设置代理服务器sdk
- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '3.x'
安装dotnet-ef
安装Entity Framework Core CLI工具，用于后面对数据库的操作
- task: CmdLine@2
  displayName: 'install dotnet-ef'
  inputs:
    script: 'dotnet tool install -g dotnet-ef'
删除数据库
 dotnet ef database drop --project &lt;path to your …</description><author>695979933@qq.com</author><category>.NET</category><category>.NET5</category><category>ASP.NET CORE</category><category>Azure</category><category>ASP.NET Core 5.0</category><guid isPermaLink="false">6B08EC4E-24A5-4BB3-ADF7-F8D07619F5C1</guid><pubDate>Sun, 30 May 2021 04:46:38 GMT</pubDate></item><item><title>【Azure DevOps系列】Azure DevOps EFCore命令式脚本部署到SQL数据库</title><link>https://hueifeng.azurewebsites.net/post/2020/12/9/azure-devopsazure-devops-efcoresql</link><description>构建迁移脚本
为了构建迁移脚本，我们将需要使用EF Tools for Command Line Interface。这些工具在Microsoft.EntityFrameworkCore.Tools提供。
迁移脚本
现在我们将通过 dotnet ef migrations script –p path to your csproj with migrations -o $(Build.ArtifactStagingDirectory)\migrations\scripts.sql –i来迁移我们的脚本，在如下代码片段中我将脚本进行迁移出来并且输出到指定的路径 -o $(Build.ArtifactStagingDirectory)/migrations/scripts.sql中，	-i代表生成可用于任何迁移的数据库的脚本。
 - task: CmdLine@2 …</description><author>695979933@qq.com</author><category>Azure</category><category>DevOps</category><guid isPermaLink="false">BF6EB13E-F56A-4F9B-AB2E-5F930856FA9E</guid><pubDate>Wed, 09 Dec 2020 13:23:52 GMT</pubDate></item><item><title>Azure Storage Account 误删恢复</title><link>https://hueifeng.azurewebsites.net/post/2020/11/12/azure-storage-account-delete-recovery</link><description>登陆Azure站点，导航到新支持请求工作流程中
file
新建一个支持请求，信息可以按照如下这么去设置，当然要注意订阅账号别选择错
file
点击图中圈起来的链接“恢复删除的存储帐户”
file
请选择已删除的帐户， 并且单击恢复。
file
恢复完成后，我们会看到一个通知success~，恢复成功
file
</description><author>695979933@qq.com</author><category>Azure</category><guid isPermaLink="false">9E7EEDF8-5DF9-4154-9647-FB713BB839AD</guid><pubDate>Thu, 12 Nov 2020 05:07:10 GMT</pubDate></item></channel></rss>