Batch saving entities with proxy associations leads to fetching all associated entities

Description

During batch saving the method IsProcessedAfterAllAssociatedEntities is called and it calls GetHashCode of the associated Entity. At this moment DefaultLazyInitializer intercepts the call and fires ImmediateLoad for the associated proxy entity, which leads to entity fetching.
More details here.

Environment

None

Activity

Show:

Frédéric Delaporte 
September 19, 2018 at 3:43 PM

Moved here.

Serhiy Shekhovtsov 
July 8, 2015 at 9:23 AM

Complete and very basic sample can be downloaded here.

Serhiy Shekhovtsov 
July 7, 2015 at 12:03 PM

As I figured out this is not related to batching and can be reproduced with a simplest example.

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created July 6, 2015 at 9:26 AM
Updated September 19, 2018 at 3:43 PM
Who's Looking?