An ICriterion that represents an "like" constraint.

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

Syntax

C#
[SerializableAttribute]
public class LikeExpression : AbstractCriterion
Visual Basic
<SerializableAttribute> _
Public Class LikeExpression _
	Inherits AbstractCriterion
Visual C++
[SerializableAttribute]
public ref class LikeExpression : public AbstractCriterion

Remarks

The case sensitivity depends on the database settings for string comparisons. Use InsensitiveLikeExpression if the string comparison should not be case sensitive.

Inheritance Hierarchy

System..::..Object
  NHibernate.Criterion..::..AbstractCriterion
    NHibernate.Criterion..::..LikeExpression

See Also