Apply an "equal" constraint to two properties

Namespace:  NHibernate.Expression
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function EqProperty ( _
	propertyName As String, _
	otherPropertyName As String _
) As AbstractCriterion
C#
public static AbstractCriterion EqProperty(
	string propertyName,
	string otherPropertyName
)
Visual C++
public:
static AbstractCriterion^ EqProperty(
	String^ propertyName, 
	String^ otherPropertyName
)
JavaScript
NHibernate.Expression.Expression.eqProperty = function(propertyName, otherPropertyName);

Parameters

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

Return Value

A EqPropertyExpression .

See Also