Ian wrote:
Hi,
The manual shows using an FieldCompareRangePredicate like so...
int[] values = new int[3] {1, 2, 5};
bucket.PredicateExpression.Add(new FieldCompareRangePredicate(
EntityFieldFactory.Create(OrderFieldIndex.OrderDate),
null, values));
However, 'EntityFieldFactory.Create' returs an IEntityField2 and yet
FieldCompareRangePredicate requires an IEntityField. How do I get the correct type?
As you specify a 'null' for the persistence info, you'll use the adapter constructor:
public FieldCompareRangePredicate(
IEntityFieldCore field,
IFieldPersistenceInfo persistenceInfo,
params object[] values
);
Or do you get an error?