Skip to content

Commit

Permalink
fixed stored procedure parameters bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amirkhaniansev committed Mar 3, 2019
1 parent b2ec60e commit 9333916
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/AccessCore/AccessCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<Authors>Sevak Amirkhanian</Authors>
<Company />
<PackageTags>ORM</PackageTags>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
<Version>2.0.1</Version>
<AssemblyVersion>2.0.1.0</AssemblyVersion>
<FileVersion>2.0.1.0</FileVersion>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageReleaseNotes></PackageReleaseNotes>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/AccessCore/Repository/DataManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ public async Task<object> OperateAsync<TResult>(

// executing specific operation
if (operationInfo.ReturnDataType == ReturnDataType.Entity)
return await this._spExecuter.ExecuteEntitySpAsync<TResult>(operationInfo.SpName, parameters);
return await this._spExecuter.ExecuteEntitySpAsync<TResult>(operationInfo.SpName, spParams);

if (operationInfo.ReturnDataType == ReturnDataType.Enumerable)
return await this._spExecuter.ExecuteSpAsync<TResult>(operationInfo.SpName, parameters);
return await this._spExecuter.ExecuteSpAsync<TResult>(operationInfo.SpName, spParams);

if (operationInfo.ReturnDataType == ReturnDataType.Scalar)
return await this._spExecuter.ExecuteScalarSpAsync<TResult>(operationInfo.SpName, parameters);
return await this._spExecuter.ExecuteScalarSpAsync<TResult>(operationInfo.SpName, spParams);

return await this._spExecuter.ExecuteSpNonQueryAsync(operationInfo.SpName, spParams);
}
Expand Down

0 comments on commit 9333916

Please sign in to comment.