DomainObjects Class Library

Criteria.AddBetween Method 

Constrains the search to rows in which the field has a value that is greater than or equal to the beginValueInRange and less than or equal to the endValueInRange. The field must be of the same data type as both the beginValueInRange and the endValueInRange.

public Criteria AddBetween(
   Field field,
   Object beginValueInRange,
   Object endValueInRange
);

Parameters

field
A field from the object model. It can be a field in a persistable object, a constant or a function.
beginValueInRange
The beginning value in the range.
endValueInRange
The ending value in the range.

Return Value

The current Criteria to which an AddBetween constraint has been added.

See Also

Criteria Class | DomainObjects.Facade.Command Namespace