Update nuget

This commit is contained in:
sunkaixuan 2022-03-24 21:27:45 +08:00
parent 1d5e4f6d32
commit c7175d7ecf
3 changed files with 7 additions and 1 deletions

View File

@ -71,7 +71,12 @@ namespace SqlSugar.Access
if (parameters.HasValue()) if (parameters.HasValue())
{ {
OleDbParameter[] ipars = GetSqlParameter(parameters); OleDbParameter[] ipars = GetSqlParameter(parameters);
if (ipars != null)
{
ipars = ipars.OrderBy(it => sql.IndexOf(it.ParameterName)).ToArray();
}
sqlCommand.Parameters.AddRange(ipars); sqlCommand.Parameters.AddRange(ipars);
} }
CheckConnection(); CheckConnection();
return sqlCommand; return sqlCommand;

View File

@ -2,6 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework> <TargetFramework>netstandard2.1</TargetFramework>
<Version>1.1.0</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugar.AccessCore</id> <id>SqlSugar.AccessCore</id>
<version>1.0</version> <version>1.1</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>Landa</owners> <owners>Landa</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>