You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Connection Idle Ping Time connection string option is still accepted, but has no effect.
If Connection Reset = False, MySqlConnection.Open will return a pooled connection (if one is available) without testing it for liveness (by pinging the server). This improves performance but may degrade reliability. (Connection Reset = True, which is the default, is still recommended for greatest reliability.)
If the server has closed the pooled connection, MySqlConnection.Open will succeed, but the first operation on that connection will fail. Command execution should be wrapped in a try/catch/retry loop to handle this scenario.
Breaking Change how option keys are serialized when retrieving the MySqlConnectionStringBuilder.ConnectionString property:
For example, User Id is now User ID, DefaultCommandTimeout is now Default Command Timeout, etc.
All existing connection strings are still valid, and all the previous aliases for connection string options are still accepted.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
MySqlBatch
(experimental API) to match .NET 6.0 API changes.DateOnly
andTimeOnly
structs: Support the new BCLDateOnly
andTimeOnly
structs #963.ZLibStream
for compression: Use ZLibStream for compression #957.X_OR_GREATER
preprocessor definitions: Use new OR_GREATER preprocessor symbols for version checks #958.MySqlBulkCopy
API: Improve MySqlBulkCopy API #1012.ConnectionIdlePingTime
: Don't ping when Connection Reset = false #1042.Connection Idle Ping Time
connection string option is still accepted, but has no effect.Connection Reset = False
,MySqlConnection.Open
will return a pooled connection (if one is available) without testing it for liveness (by pinging the server). This improves performance but may degrade reliability. (Connection Reset = True
, which is the default, is still recommended for greatest reliability.)MySqlConnection.Open
will succeed, but the first operation on that connection will fail. Command execution should be wrapped in a try/catch/retry loop to handle this scenario.MySqlConnectionStringBuilder.ConnectionString
property:User Id
is nowUser ID
,DefaultCommandTimeout
is nowDefault Command Timeout
, etc.MySqlCommandBuilder
andMySqlConversionException
.netstandard1.3
andnetcoreapp2.1
target frameworks: Removenetstandard1.3
support #1031, Removenetcoreapp2.1
support #1067.ActivitySource
for tracing: Add ActivitySource #1036.MySqlConnection.ProvideClientCertificatesCallback
,MySqlConnection.ProvidePasswordCallback
,MySqlConnection.RemoteCertificateValidationCallback
: RDS/Aurora IAM Database Authentication and Connection Pooling #800, [New Feature] Passing Certificate in X509Certificate/X509Certificate2 format rather than physical paths #976.BigInteger
as parameter value: Support BigInteger parameter #1069.MySqlErrorCode
: Add additional MySQL error codes #1048.MySqlError.Code
obsolete: Replace MySqlError.Code with ErrorCode #1011.ErrorCode
property instead.BackgroundConnectionResetHelper
: Remove BackgroundConnectionResetHelper (used by DeferConnectionReset=false) #1013.MySqlConnectionStringBuilder.DeferConnectionReset
is obsolete and will always be treated as if it'strue
.[Category]
,[DefaultValue]
, and[Description]
attributes to allMySqlConnectionStringBuilder
properties.DELIMITER
is used in a SQL statement: Better exception ifDELIMITER
is used #1010.MySqlConnectionStringBuilder.TryGetValue
: MySqlConnectionStringBuilder does not implement ICustomTypeDescriptor correctly #1030.MySqlCommand.LastInsertedId
when executing multiple commands: MySqlCommand.LastInsertedId #1026.ObjectDisposedException
that could be thrown when a connection timeout occurred.This discussion was created from the release 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions