mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(dir): ♻📦 re-add EFCore.NamingConventions to use Postgres snake_case convention
This commit is contained in:
parent
f5f527f03d
commit
1e04803760
2 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ public static void AddInfrastructure(this IServiceCollection services, IConfigur
|
|||
{
|
||||
o.UseNpgsql(configuration.GetConnectionString("DirectoryConnection"),
|
||||
po => po.MigrationsAssembly("FilterLists.Directory.Infrastructure.Migrations"))
|
||||
.UseSnakeCaseNamingConvention()
|
||||
#if DEBUG
|
||||
.LogTo(Console.WriteLine, LogLevel.Information);
|
||||
o.EnableSensitiveDataLogging();
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="EFCore.NamingConventions" Version="6.0.0-rc.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in a new issue