From c60ad79377058a15a8d38dea24b0c96afeb9ed17 Mon Sep 17 00:00:00 2001 From: Abraham Heidebrecht Date: Thu, 1 Sep 2016 22:09:10 -0400 Subject: [PATCH] Fixed bug where command wasn't disposed when executing a non-query with the dynamic syntax --- CodeOnlyStoredProcedure/Dynamic/DynamicStoredProcedureResults.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CodeOnlyStoredProcedure/Dynamic/DynamicStoredProcedureResults.cs b/CodeOnlyStoredProcedure/Dynamic/DynamicStoredProcedureResults.cs index 8c97fac..6a774e1 100644 --- a/CodeOnlyStoredProcedure/Dynamic/DynamicStoredProcedureResults.cs +++ b/CodeOnlyStoredProcedure/Dynamic/DynamicStoredProcedureResults.cs @@ -65,6 +65,7 @@ public DynamicStoredProcedureResults( { command.ExecuteNonQuery(); TransferOutputParameters(parameters, token); + Dispose(); } else {