Otis wrote:
The betweenpredicate doesn't support fields indeed, you have to do that with some extra code and 2 fieldcompareexpression predicates.
I admit, pretty clumbsy, added to the todo list.
I know this is a old thread but I'm using version 3.1 and I still don't see a way to put the value as the left operator using a BetweenPredicate as such...
filter.Add(new FieldBetweenPredicate(value, VRackPriceFields.EffectiveFromDateTime, VRackPriceFields.EffectiveFromDateTime));
I'd expect this to generate the following SQL when added to my filter...
AND @value BETWEEN EffectiveFromDateTime AND EffectiveToDateTime
Am I missing something or has this still not been implemented in version 3.1? If it has can you give example of how to do this>
Thanks