Chris
Chris

Reputation: 7369

Domain Driven Design: Aggregate roots with large collections

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

Answers (1)

DanP
DanP

Reputation: 6478

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

Upvotes: 1

Related Questions