We have a class called Task:
public partial class Task : EntityObject
{
public EntityCollection TaskUsers { get {...} set{...} }
}
Well the EF can only translate Expressions, not functions.
i.e. it can translate this:
Expression>
but not this:
Func
As for how to merge expressions (in pseudo code):
Expression> expression = a => a.User.ID == 1;
return tasks.Where(t => t.TaskUsers.Any(expression));
There are probably some Expression guru's who can help with that.
I suggest a followup question focused on that particular problem
Alex