Apply an "equal" constraint to two properties

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

Syntax

C#
public static AbstractCriterion EqProperty(
	string propertyName,
	string otherPropertyName
)
Visual Basic
Public Shared Function EqProperty ( _
	propertyName As String, _
	otherPropertyName As String _
) As AbstractCriterion
Visual C++
public:
static AbstractCriterion^ EqProperty(
	String^ propertyName, 
	String^ otherPropertyName
)

Parameters

propertyName
Type: System..::..String
The lhs Property Name
otherPropertyName
Type: System..::..String
The rhs Property Name

Return Value

A EqPropertyExpression .

See Also