Thanks for your help
I'm using MSSQL but the problem is not related to the database, or to the cache mecanism.
I only want to know if there is a way to intercept the fetch that llblgen want to do to retrieve from another datasource than the db (to retrieve from the cache system)
I know I can override the FetchEntity(), FetchEntityCollection(), FetchEntityWithUniqueConstraint(). This will work for direct fetch of an object put in cache. But it' ll not work if the same object is fetched via prefetch path.
Concrete example :
I want to put object A in a full cache. So I want to intercept all fetch for object A done by llblgen, I retrieve the object via the cache instead of db.
If I override FetchEntity*, I can test if it's fetching object A
But if Ifetch Object B with prefetch path to A, it's not work : A will be fetched from the db, not from the cache.
I hope It's clear because I've quite hard to explain it in English..