LLBLGen Pro Team
Scheveningen, The Netherlands
When I bind an entity collection with entity objects to an Infragistics winforms control, my application hangs and crashes. When I bind the same collection to the equivalent .NET control, it works fine. What causes this?
Infragistics controls read, when they see that objects in a binded collection contain collection properties, all the objects inside these collections as well, to a depth of 100 by default. This will thus read your entire database into memory. To avoid this, set the property MaxBandDepth of your Infragistics control to 1. Now, the control will use the lazy loading logic implemented in the entity objects.