Home > Mobile >  The right way to DI NpgsqlConnection postgreSQL with multiple connectionString in ASP.NET Core 3.1
The right way to DI NpgsqlConnection postgreSQL with multiple connectionString in ASP.NET Core 3.1

Time:04-22

I'm struggling to register DI NpgsqlConnection() with multiple connection strings in ASP.NET Core 3.1, Dapper v2.0.78 & Postgres v11.

I will provide the current state & fix the code below:

Current State

The idea comes from enter image description here

  • Related