Initializes a new instance of the EqPropertyExpression class that compares two mapped properties using an "equal" constraint.

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

Syntax

C#
public EqPropertyExpression(
	string lhsPropertyName,
	string rhsPropertyName
)
Visual Basic
Public Sub New ( _
	lhsPropertyName As String, _
	rhsPropertyName As String _
)
Visual C++
public:
EqPropertyExpression(
	String^ lhsPropertyName, 
	String^ rhsPropertyName
)

Parameters

lhsPropertyName
Type: System..::..String
The name of the Property to use as the left hand side.
rhsPropertyName
Type: System..::..String
The name of the Property to use as the right hand side.

See Also