Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Equivalent of MySQL.Data's static methods #1019

Answered by bgrainger
Arthri asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Correct; all MySqlConnection objects created with the same connection string are automatically pooled (unless it contains Pooling=false).

Replies: 1 comment 1 reply

Comment options

Correct; all MySqlConnection objects created with the same connection string are automatically pooled (unless it contains Pooling=false).

You must be logged in to vote
1 reply
Comment options

Thank you for the answer ♥

Answer selected by Arthri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /