This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How can I set CacheFindAllResult for reference data? Is this supported in the designer? I have not been able to find anything in the documentation or in the designer as yet. While I can set this attribute parameter in a partial class for non reference data entities, I am unable to do the same for reference data entities as the cached property cannot be duplicated in the partial class and must be set in the designer to avoid the following build error: "CollectionName not set on relationship from X to Y. If X is reference data and you do not want it to have a collection property, X must be cached"
|
|
|
Thanks for drawing our attention to this. It is not currently supported in the designer but I have added a fix for this and it will be available in the next nightly build. To set CacheFindAllResult on an entity, you will need to go into the LightSpeed Model Explorer (View > Other Windows > LightSpeed Model), right-click the entity, and choose Add New Caching Options. This will enable the Caching Options node where you can set the Cache Find All Result flag. |
|
|
Just to be clear, you still need to set the Cached option on the entity directly through the property grid. The Caching Options node is just for configuring caching behaviour once it's been turned on. (Also, for compatibility reasons the Cache Expiry setting remains in the property grid rather than moving to the Caching Options node.) |
|
|
Perfect, thanks Ivan |
|