This is a migrated thread and some comments may be shown as answers.

Telerik DataAccess and Oracle - Bind Variables

3 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 17 Mar 2017, 11:29 AM

Hi there,

 

i've got a question around the data access component. Is there a way that OpenAccess can use bind variables for accessing data? We've got an OData-Facade which goes through Telerik.DataAccess and the dynamic sql requests against the database are going to the roof. 

I've looked into our App and recognized that every query against the database is run with a new dynamic statement. The mapping of the data is done with the fluent context model.

 

Beste Regards,

Martin

3 Answers, 1 is accepted

Sort by
0
Viktor Zhivkov
Telerik team
answered on 22 Mar 2017, 02:13 PM
Hello Martin,

If you are referring to the process of preparing statements before execution and reuse of the already prepared statement, please check if your RuntimeConfiguration.PrepareCommands configuration flag is set to true.

Regards,
Viktor Zhivkov
Telerik by Progress
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
0
Martin
Top achievements
Rank 1
answered on 23 Mar 2017, 07:36 AM

Hi Viktor,

 

the PrepareCommands is set to true. By now i think that the problem isn't in telerik but in the odata implementation from microsoft. I will dig deeper in the future.

Thanks for your help.

 

Regards,

Martin

0
Martin
Top achievements
Rank 1
answered on 23 Mar 2017, 09:42 AM

Hi,

the problem seems to be, that the OData-Query from the url is translated into a linq expression. In this step the binding variables get missing.

Beste Regards,

Martin

Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Viktor Zhivkov
Telerik team
Martin
Top achievements
Rank 1
Share this question
or