How to merge expression tree as Expression<Func<TEntity, bool>> with navigation expression Expresion<Func<TEntity,TProperty>>? I need to create a generic code for query but the property for comparation can be dynamic depends by db. My constant value depends from the user.
Example:
builder.HasQueryFilter(x=>myConstantValue==navigationProperty)
I tried different ways also to create 2 navigationProperty and to compare them with Expression.Equal