Version 5.4, Self-Servicing.
Say I have entities Master and Detail, with a 1:M relationship. In MasterEntity, there's a Details property that returns the collection of related DetailEntities. With lazy loading enabled, this collection is fetched from the database the first time I access the Details property.
However, I've noticed that this happens even if the MasterEntity is new, even though there couldn't be any existing Details in the database (because of the FK restriction). When I'm adding a large number of MasterEntities, this produces a correspondingly-large number of unnecessary database calls.
Is there a way to avoid this, short of switching to self-servicing? Will setting AlreadyFetchedDetails do what I want?