mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Access bug
This commit is contained in:
@@ -71,7 +71,12 @@ namespace SqlSugar.Access
|
||||
if (parameters.HasValue())
|
||||
{
|
||||
OleDbParameter[] ipars = GetSqlParameter(parameters);
|
||||
if (ipars != null)
|
||||
{
|
||||
ipars = ipars.OrderBy(it => sql.IndexOf(it.ParameterName)).ToArray();
|
||||
}
|
||||
sqlCommand.Parameters.AddRange(ipars);
|
||||
|
||||
}
|
||||
CheckConnection();
|
||||
return sqlCommand;
|
||||
|
Reference in New Issue
Block a user