XAF Tips and Tricks

[Tip1]
Beware putting an [Aggregate] tag on a collection unless you only ever want the collection accessed by a parent

[Tip2]
Beware putting a filter controller on a business class if you also want to see the objects as a child collection.

Because the child collection will still get filtered in the following code for example.

public partial class FilterContactListViewController : ObjectViewController<ListView, ContactExt>
{
    public FilterContactListViewController()
    {

        
    }
    protected override void OnActivated()
    {
        base.OnActivated();
         

        View.CollectionSource.Criteria["Filter1"] = filter.GetCriteria();  // beware 

     
    }

}