There is a TObjectManager that performs SaveOrUpdate operations for various entities.
The TObjectManager runs with CachedUpdates enabled.
How can I easily iterate over these stored entities before ApplyUpdates has been executed?
Once ApplyUpdates has been executed, I could retrieve them using Find<>.List, but what is the most efficient way to do this before ApplyUpdates, without maintaining custom lists?
But it's protected. You can access it using a protected hack or by inheriting from TObjectManager. I wonder what do you want to do with it, exactly? Why you need those?
I need to ensure that the record index is generated sequentially and without gaps.
For this purpose, processing of the entity is already exclusive to a single session.
Or are there simpler solutions for this using Aurelius?
However, CachedActions may also include intermediate delete operations, etc.—so more than just the records added in the batch.
Aurelius doesn't cache updates of entities with auto increment field as primary key.
If they are not primary keys, you can simply do it server side, or simply set the key when saving the entity (adding to cached updates).
Well, I asked for a better explanation and you wrote an even shorter 6-word phrase. So well, you have CachedActions property there, find out if it fits for you.