I have found there to be very little information on this topic, was hoping someone could direct me to some information and possible sample code.
Generally connections are not thread safe(SqlConnection ,MySqlConnection and OracleConnection specifically mention that they are not thread safe).
Don't share a connection between threads.
I would say dont share the connection object itself, just create a new connection and let ADO.net handle connection pooling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With