Dapper使用MySql.Data偶发执行异常(Net Framework)
System.Number.StringToNumber(string, System.Globalization.NumberStyles, ref System.Number.NumberBuffer, System.Globalization.NumberFormatInfo, bool) System.Number.ParseInt32(string, System.Globalization.NumberStyles, System.Globalization.NumberFormatInfo) MySql.Data.MySqlClient.Driver.LoadCharacterSets(MySql.Data.MySqlClient.MySqlConnection) MySql.Data.MySqlClient.Driver.Configure(MySql.Data.MySqlClient.MySqlConnection) MySql.Data.MySqlClient.MySqlConnection.Open() Dapper.SqlMapper.QueryImpl<T>(System.Data.IDbConnection, Dapper.CommandDefinition, System.Type) Dapper.SqlMapper.Query<T>(System.Data.IDbConnection, string, object, System.Data.IDbTransaction, bool, int?, System.Data.CommandType?)
执行一般查询,偶发抛出以上异常,特此记录
更换为 MySqlConnector 解决此问题
备注:
MySql.Data -Version 8.0.30
MySqlConnector -Version 2.1.3
Dapper -Version 2.0.123