refactor(dir): ♻📦 re-add EFCore.NamingConventions to use Postgres snake_case convention

This commit is contained in:
Collin M. Barrett 2021-11-18 10:58:15 -06:00
parent f5f527f03d
commit 1e04803760
2 changed files with 2 additions and 0 deletions

View file

@ -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();

View file

@ -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>