Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Worker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

// ── Database (PostgreSQL via EF Core) ──
services.AddDbContext<AppDbContext>(options =>
options.UseNpgsql(configuration.GetConnectionString("DefaultConnection")));
options.UseNpgsql(configuration.GetConnectionString("DefaultConnection"))
.UseSnakeCaseNamingConvention());

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The ApiGateway project also uses AppDbContext and maps to the same database tables (documents, processed_messages). Since these tables use snake_case columns, the ApiGateway will likely encounter the same 'column does not exist' errors unless .UseSnakeCaseNamingConvention() is also applied to its configuration and the EFCore.NamingConventions package is added to its project file.


// ── Repository ──
services.AddScoped<IDocumentRepository, DocumentRepository>();
Expand Down
1 change: 1 addition & 0 deletions src/Worker/Worker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EFCore.NamingConventions" Version="8.0.3" />
<PackageReference Include="MassTransit" Version="8.5.9" />
<PackageReference Include="MassTransit.RabbitMQ" Version="8.5.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.*" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The pull request description mentions pinning versions to 8.0.3 and avoiding wildcards, but Microsoft.EntityFrameworkCore is still using 8.0.*. For consistency and to prevent potential version mismatch issues between EF Core and its plugins, this should be pinned to 8.0.3 as well.

    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.3" />

Expand Down
Loading