I have two entities (ChildA and ChildB) inheriting from the same entity (Parent). So two expression each from child entities are as follows:
Expression<Func<T, Parent>> aExpression =
t=> t.ChildAs.OrderByDescending(o => o.CreatedDate).FirstOrDefault();
Expression<Func<T, Parent>> bExpression = t => t.ChildBs.OrderByDescending(o => o.CreatedDate).FirstOrDefault();
CreatedDate is a field in Parent entity. I want to union these two expressions and put conditions on the final expression. How to union these?