Property ForceRefresh in ObjectManager

For some cases we would need to disable caching in an ObjectManager.

https://support.tmssoftware.com/t/lazy-loading-and-refreshing/7953

We are loading an Entity that holds a List of other Entities.

Fetching the Entity using Refreshing, will only refresh List instead of all objects within the List.
Taking a look at the ticket, this is how you describe it works.

For now we are clearing the ObjectManager, so that we'll get the actual Entities within the List.
But it would be easier if we could tell the ObjectManager that it should not load Entities from Cache. (Memory-Management should not change at all)

Some Additional Informations:

The List of Entities is displayed using TAureliusDataset.
Some of them also provide LookupFields.

On this point we got an AccessViolation by using ObjectManager.Clear, because Entities fetched by LookupDataset are also cleared as they should...

So we would need the possibility to tell the ObjectManager, that it should not cache Entities at all.
(Or maybe there is already an existing solution, that I didn't recognize)

At Least we would like to avoid closing and reopen Datasets, if nothing has changed within...

I believe this is a duplicate of

Please confirm, as I will close this request.

yes, it seems to be a duplicate

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.