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

Level2 Cache Default Behavior

1 Answer 54 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.
Keith
Top achievements
Rank 1
Keith asked on 20 Dec 2011, 05:59 PM
I have found many references to setting a default caching behavior on an Openaccess file, but I cannot seem to find it in the designer or anywhere online on how to change it, just references to it. I would like to have my default Level2 cache be disabled on all tables/classes, but enabled on some. How would I define the global scope? I can see where I define it on each object, and I do not want to set each of the tables to off.

1 Answer, 1 is accepted

Sort by
0
Ralph Waldenmaier
Telerik team
answered on 21 Dec 2011, 09:32 AM
Hi Keith,

You can enable/disable the 2nd Level Cache also in the Visual Designer. See the link for details. 
The method you are trying to do, by disabling all by default and enabling the cache selectively for some domain classes, is not supported by Telerik OpenAccess ORM.
Instead, we are following the approach, that you have to decide to use the 2nd Level Cache and then get the opportunity to selectively not cache data of several domain classes. See this link for details on how to configure your caching strategy for your domain classes.

I hope this information is useful for you. Feel free to ask if you have any other question.

Greetings,
Ralph
the Telerik team

Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Keith
Top achievements
Rank 1
Answers by
Ralph Waldenmaier
Telerik team
Share this question
or