Reputation: 7369
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.
Upvotes: 3
Views: 894
Reputation: 6478
You can use Nhibernate's collection filters for this, see this similar question for examples.
Upvotes: 1