From ea3887ab769649b5a43811ed4db6ee24c1c0c74d Mon Sep 17 00:00:00 2001 From: amirkhaniansev Date: Mon, 12 Nov 2018 06:50:37 +0400 Subject: [PATCH] fixed bug in command construction --- src/AccessCore/AccessCore.csproj | 2 +- src/AccessCore/SpExecuters/SpExecuter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AccessCore/AccessCore.csproj b/src/AccessCore/AccessCore.csproj index c53333e..5eb58dd 100644 --- a/src/AccessCore/AccessCore.csproj +++ b/src/AccessCore/AccessCore.csproj @@ -9,7 +9,7 @@ Sevak Amirkhanian ORM - 1.0.3 + 1.0.4 1.0.0.1 1.0.0.1 diff --git a/src/AccessCore/SpExecuters/SpExecuter.cs b/src/AccessCore/SpExecuters/SpExecuter.cs index cc0dd86..d7da8da 100644 --- a/src/AccessCore/SpExecuters/SpExecuter.cs +++ b/src/AccessCore/SpExecuters/SpExecuter.cs @@ -207,7 +207,7 @@ private object Execute(StoredProcedure storedProcedure) where TResult : // returning amount of affected rows after non-query stored procedure execution sqlCommand.ExecuteNonQuery(); - return sqlCommand.Parameters["ReturnParameter"].Value; + return sqlCommand.Parameters["ReturnValue"].Value; } } }