Apply an "equal" constraint to the named property

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

Syntax

Visual Basic (Declaration)
Public Shared Function Eq ( _
	propertyName As String, _
	value As Object _
) As SimpleExpression
C#
public static SimpleExpression Eq(
	string propertyName,
	Object value
)
Visual C++
public:
static SimpleExpression^ Eq(
	String^ propertyName, 
	Object^ value
)
JavaScript
NHibernate.Expression.Expression.eq = function(propertyName, value);

Parameters

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

Return Value

An EqExpression.

See Also