Loading Lazy Associations

By default our Associations are Lazyloaded, because we do not need them in most cases.

But sometimes it would be nice to fetch some lazy-objects with the corresponding entity.
Are there any possibilities to fetch these within one Statement, without using Projections?

Without projections, because we would like to work with the instances itself instead of criteria-results.

Yes:

https://doc.tmssoftware.com/biz/aurelius/guide/queries.html#specifying-eager-fetching-for-associations-loaded-as-lazy-by-default

Results := Manager.Find<TEstimate>
    .FetchEager('Customer')
    .List;

Thanks, I was searching for a hole day within the documentation but I didn't get this...

1 Like

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