diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/MySqlProvider.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/MySqlProvider.cs index 00484e338..023c329a0 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/MySqlProvider.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/MySqlProvider.cs @@ -97,13 +97,17 @@ namespace SqlSugar sqlParameter.Size = parameter.Size; sqlParameter.Value = parameter.Value; sqlParameter.DbType = parameter.DbType; - sqlParameter.Direction = parameter.Direction; - if (sqlParameter.Direction == 0) + if (parameter.Direction == 0) { - sqlParameter.Direction = ParameterDirection.Input; + parameter.Direction = ParameterDirection.Input; } + sqlParameter.Direction = parameter.Direction; + //if (sqlParameter.Direction == 0) + //{ + // sqlParameter.Direction = ParameterDirection.Input; + //} result[index] = sqlParameter; - if (sqlParameter.Direction.IsIn(ParameterDirection.Output, ParameterDirection.InputOutput,ParameterDirection.ReturnValue)) + if (sqlParameter.Direction.IsIn(ParameterDirection.Output, ParameterDirection.InputOutput, ParameterDirection.ReturnValue)) { if (this.OutputParameters == null) this.OutputParameters = new List(); this.OutputParameters.RemoveAll(it => it.ParameterName == sqlParameter.ParameterName);