This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi LS team, I wonder if it is possible to eager load some of the child records instead of all child records? According to this, eager loading will always select all child records. However I have a scenario where I only want to load some child records. Can LS achieve this by using eager loading? Thanks Xiaosu |
|
|
No, loading an association will always load the whole collection. If you want to load a subset then just issue a separate query to load the specific entities required. If you want to expose this as a property on the parent entity then you can use the Entity.UnitOfWork property for this.
|
|