C# MySQL Connection Pooling

前端 未结 1 1399
粉色の甜心
粉色の甜心 2020-12-07 01:48

I am having C# multi threading application and using MySQL with single connection to whole application. But when two or more thread try to access d

相关标签:
1条回答
  • 2020-12-07 02:33

    Pooling is turned on by default, so you don't need that connection string parameter.

    Don't share MySqlConnection instances. That's it.

    Pooling is not something you implement in your code, it's done for you by ADO.NET.

    0 讨论(0)
提交回复
热议问题