Commit d1ffd160 authored by Eric Dieckman's avatar Eric Dieckman
Browse files

Add snake case naming convention in EF Core

parent 323a7c19
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -18,4 +18,10 @@ public class ApplicationDbContext : DbContext
    {
        modelBuilder.ApplyConfigurationsFromAssembly(typeof(ApplicationDbContext).Assembly);
    }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        optionsBuilder
            .UseSnakeCaseNamingConvention();
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@

	<ItemGroup>
    <PackageReference Include="Cals.Cqrs" Version="2.1.0" />
    <PackageReference Include="EFCore.NamingConventions" Version="8.0.3" />
		<PackageReference Include="MailKit" Version="4.12.1" />
		<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.21" />
		<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.21" />