Skip to content

Commit

Permalink
🗑️ delete(appsettings.PostgreSql.json): 删除 PostgreSQL 配置文件以优化项目配置管理
Browse files Browse the repository at this point in the history
🔄 rename(appsettings.Development.json): 重命名开发环境配置文件为 appsettings.MySql.json
🔧 update(SingleMigrationsDbContextFactory.cs): 更新数据库上下文工厂以使用 MySql 配置文件
  • Loading branch information
feijie999 committed Dec 12, 2024
1 parent 59114c4 commit ec41df3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 260 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,6 @@
<None Remove="appsettings.Production.json" />
</ItemGroup>

<ItemGroup>
<Content Include="appsettings.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<!-- <Content Include="appsettings.Production.json">-->
<!-- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>-->
<!-- <ExcludeFromSingleFile>true</ExcludeFromSingleFile>-->
<!-- <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>-->
<!-- </Content>-->
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\modules\platform\LINGYUN.Abp.UI.Navigation.VueVbenAdmin\LINGYUN.Abp.UI.Navigation.VueVbenAdmin.csproj" />
<ProjectReference Include="..\LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql\LY.MicroService.Applications.Single.EntityFrameworkCore.PostgreSql.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private static IConfigurationRoot BuildConfiguration()
.SetBasePath(Path.Combine(Directory.GetCurrentDirectory(),
"../LY.MicroService.Applications.Single.DbMigrator/"))
.AddJsonFile("appsettings.json", optional: false)
.AddJsonFile("appsettings.Development.json", optional: true);
.AddJsonFile("appsettings.MySql.json", optional: true);

return builder.Build();
}
Expand Down

This file was deleted.

0 comments on commit ec41df3

Please sign in to comment.