Apply a "between" constraint to the named property

Namespace: NHibernate.Criterion
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static AbstractCriterion Between(
	string propertyName,
	Object lo,
	Object hi
)
Visual Basic
Public Shared Function Between ( _
	propertyName As String, _
	lo As Object, _
	hi As Object _
) As AbstractCriterion
Visual C++
public:
static AbstractCriterion^ Between(
	String^ propertyName, 
	Object^ lo, 
	Object^ hi
)

Parameters

propertyName
Type: System..::..String
The name of the Property in the class.
lo
Type: System..::..Object
The low value for the Property.
hi
Type: System..::..Object
The high value for the Property.

Return Value

A BetweenExpression.

See Also