From daa44300e2f0b1a4792c9110d99d859ec2d40a57 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 6 Nov 2017 11:31:13 +0800 Subject: [PATCH] - --- .../SqlSugar/Realization/MySql/MySqlProvider.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/MySqlProvider.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/MySqlProvider.cs index 48a4090a1..fd3d240a4 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/MySqlProvider.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/MySql/MySqlProvider.cs @@ -48,7 +48,7 @@ namespace SqlSugar } catch (Exception ex) { - Check.Exception(true, "MySql.Data.dll Nuget更新到 6.10.3-rc 版本的(Core 2.0只支持当前版本), 再检查连接字符串是否正确,{0}", ex.Message); + Check.Exception(true, "MySql.Data.dll Nuget更新到 6.10.4 版本的(Core 2.0只支持当前版本), 再检查连接字符串是否正确,{0}", ex.Message); } } } @@ -111,8 +111,13 @@ namespace SqlSugar sqlParameter.Value = parameter.Value; sqlParameter.DbType = parameter.DbType; sqlParameter.Direction = parameter.Direction; + if (sqlParameter.Direction == 0) + { + sqlParameter.Direction = ParameterDirection.Input; + } result[index] = sqlParameter; - if (sqlParameter.Direction == ParameterDirection.Output) { + if (sqlParameter.Direction.IsIn(ParameterDirection.Output, ParameterDirection.InputOutput)) + { if (this.OutputParameters == null) this.OutputParameters = new List(); this.OutputParameters.RemoveAll(it => it.ParameterName == sqlParameter.ParameterName); this.OutputParameters.Add(sqlParameter);