-
Notifications
You must be signed in to change notification settings - Fork 347
-
Hi! I'm migrating from MySQL.Data/MySQL Connector.NET and I was wondering if there's an equivalent class to MySQL.Data's MySqlHelper. The class basically provides static methods for querying, a connection string can be passed in, and in that case it will manage connections pools automatically.
https://dev.mysql.com/doc/connector-net/en/connector-net-connections-pooling.html
If I'm right, I should just create a new MySqlConnection every time I need to query, and OpenAsync() manages the pools automatically right?
Beta Was this translation helpful? Give feedback.
All reactions
Correct; all MySqlConnection objects created with the same connection string are automatically pooled (unless it contains Pooling=false).
Replies: 1 comment 1 reply
-
Correct; all MySqlConnection objects created with the same connection string are automatically pooled (unless it contains Pooling=false).
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you for the answer ♥
Beta Was this translation helpful? Give feedback.