I'm analyzing building a "advanced search" panel where a user can add two integer input values to filter the search.
I will be able to put most calculations stuff I need as properties on the objects but I also wonder (to know what options I have) if it's possible do something like this (or similiar) when querying:
.Filter(x => (x.operatingCost + (12 * input1)).GreaterThan(x));
.Filter(x => (x.price - input2).GreaterThan(y);
That's not possible. However, it seems that you could get the same result by modifying what you filter with, ie: .Filter(x => x.price.GreaterThan(y+input2);
Thanks Joel! Examples were highly simplified. I just wanted to know if I'd missed someting when testing stuff out.