开发者

Domain Driven Design: Aggregate roots with large collections

开发者 https://www.devze.com 2023-01-20 04:43 出处:网络
I was wondering how I would handle aggregate roots that contain collections with a lot of entities. Like:

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
}
开发者_JS百科

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消