CC#•Created by Impulsive on 11/23/2024 in #help .NET 8.0, PostgreSql and left over Idle sessions
The proper way to handle all of that would be to use EF or Dapper, use them with dependency injection, and just let the DI container handle everything about the lifetime and disposal