Register a custom method for use in a QueryOver expression
Namespace: NHibernate.ImplAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static void RegisterCustomMethodCall( Expression<Func<bool>> function, Func<MethodCallExpression, ICriterion> functionProcessor ) |
Visual Basic |
---|
Public Shared Sub RegisterCustomMethodCall ( _ function As Expression(Of Func(Of Boolean)), _ functionProcessor As Func(Of MethodCallExpression, ICriterion) _ ) |
Visual C++ |
---|
public: static void RegisterCustomMethodCall( Expression<Func<bool>^>^ function, Func<MethodCallExpression^, ICriterion^>^ functionProcessor ) |
Parameters
- function
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'Boolean>)>)>>)>)>
Lambda expression demonstrating call of custom method
- functionProcessor
- Type: System..::..Func<(Of <(<'MethodCallExpression, ICriterion>)>)>
function to convert MethodCallExpression to ICriterion