Loading src/infrastructure/Contexts/ApplicationDbContext.cs +6 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,10 @@ public class ApplicationDbContext : DbContext { modelBuilder.ApplyConfigurationsFromAssembly(typeof(ApplicationDbContext).Assembly); } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder .UseSnakeCaseNamingConvention(); } } src/infrastructure/Infrastructure.csproj +1 −0 Original line number Diff line number Diff line Loading @@ -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" /> Loading Loading
src/infrastructure/Contexts/ApplicationDbContext.cs +6 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,10 @@ public class ApplicationDbContext : DbContext { modelBuilder.ApplyConfigurationsFromAssembly(typeof(ApplicationDbContext).Assembly); } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder .UseSnakeCaseNamingConvention(); } }
src/infrastructure/Infrastructure.csproj +1 −0 Original line number Diff line number Diff line Loading @@ -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" /> Loading