Apply a "like" 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 SimpleExpression Like(
	string propertyName,
	Object value
)
Visual Basic
Public Shared Function Like ( _
	propertyName As String, _
	value As Object _
) As SimpleExpression
Visual C++
public:
static SimpleExpression^ Like(
	String^ propertyName, 
	Object^ 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

A LikeExpression.

See Also