Create an ICriterion for the supplied LambdaExpression

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

Syntax

C#
public static ICriterion Where(
	Expression<Func<bool>> expression
)
Visual Basic
Public Shared Function Where ( _
	expression As Expression(Of Func(Of Boolean)) _
) As ICriterion
Visual C++
public:
static ICriterion^ Where(
	Expression<Func<bool>^>^ expression
)

Parameters

expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'Boolean>)>)>>)>)>
lambda expression

Return Value

return NHibernate.Criterion.ICriterion

See Also