In the web API application, we use a repository pattern with the SQL server. we get the below connection error,
- There is already an open DataReader associated with this Command which must be closed first.
- Invalid operation. The connection is closed.
- ExecuteReader requires an open and available Connection. The connection's current state is connecting.
Is there a possibility to share a connection in a connection pool?
We open multiple connections at the same time