Thank you for providing your code snippets.
I was able to reproduce the reported behaviour. The problem here is the usage of the connection in the CallTestStoredProcedure method. The connection is obtained from the scope which means that you are now responsible for this connection.
Please see the following example how this could look like:
(var connection = scope.GetConnection(
(var command = connection.CreateCommand())
command.CommandType = CommandType.StoredProcedure;
Using this pattern I was no longer getting the reported exception.
I hope this information is helpful for you.
Do come back in case you need further assistance.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map