Domain driven design. Aggregate roots with large collections

I was wondering how I would handle aggregate roots containing collections with lots of objects.

how

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

How can I request a child collection for specific children? I am using Nhibernate btw.

+3
source share
1 answer

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

+1
source

Source: https://habr.com/ru/post/1770074/


All Articles