Before Q3 2011 was live we have introduced you one of the major new functionalities you can find in the release – the new Stored Procedure Editor. It is the tool that allows us now to present our stored procedure support as feature complete.
Along with the visual interface the Editor is offering, we have enhanced the functionality that was available in previous OpenAccess ORM versions generating automatically methods in the OpenAccessContext that are calling stored procedures. The old version of this code generation used to produce methods such as this one:
// Old code generation
SqlParameter parameterCarMake =
List<SqlParameter> sqlParameters =
 queryResult =
, sqlParameters, carMake);
With Q3 2011 release, the return types of the stored procedures are configurable, so the generated method for the same procedure could look like this:
// New code generation
OAParameter parameterCarMake =
parameterCarMake.Value = carMake;
IEnumerable<WebApplication4.Car> queryResult =
, CommandType.StoredProcedure, parameterCarMake);
Due to this flexibility, no stored procedure is automatically generated before you explicitly request it through the Stored Procedure Editor, specifying the desired result set. We are offering you plenty of options for it:
But the best improvement of all is the ability to define multiple result sets for your stored procedures - depending on what do you need to use the result for.
If you are using stored procedures with an older version of OpenAccess ORM and you upgrade to Q3 2011, you will find that all of your methods calling stored procedures are missing. We have already prepared a backward compatibility setting for you so that you can quickly get your code up and running again. You should just follow a simple set of instructions specified in the relevant Knowledge Base article.
Even with the old methods still there, you will be able to benefit from using the Stored Procedure Editor. You should just specify different names in the Editor for your new methods (instead of the default values) so that they do not overlap with the old ones.
In order to quickly start using the new Stored Procedure Editor in your application, take a look at the getting started video tutorial we have published on Telerik TV. Do not hesitate to let us know through the rating system whether you are having a great learning experience or we can improve our videos in some way.
In any case, the best way for evaluating our new stored procedure handling capabilities is to get your hands dirty, so download the new release and give them a try!
Ivailo Ivanov is Team Lead in Telerik Data Access
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.