3
votes

I was wondering how I would handle aggregate roots that contain collections with a lot of entities.

Like:

public class AggregateRoot
{
    public ICollection<Child> Children { get; set; } // 10.000 entities
}

How would I query the child collection to get specific children? I am using Nhibernate btw.

1

1 Answers

1
votes

You can use Nhibernate's collection filters for this, see this similar question for examples.