Register a custom projection 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 RegisterCustomProjection<T>( Expression<Func<T>> function, Func<MethodCallExpression, IProjection> functionProcessor ) |
Visual Basic |
---|
Public Shared Sub RegisterCustomProjection(Of T) ( _ function As Expression(Of Func(Of T)), _ functionProcessor As Func(Of MethodCallExpression, IProjection) _ ) |
Visual C++ |
---|
public: generic<typename T> static void RegisterCustomProjection( Expression<Func<T>^>^ function, Func<MethodCallExpression^, IProjection^>^ functionProcessor ) |
Parameters
- function
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T>)>)>>)>)>
Lambda expression demonstrating call of custom method
- functionProcessor
- Type: System..::..Func<(Of <(<'MethodCallExpression, IProjection>)>)>
function to convert MethodCallExpression to IProjection
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:NHibernate.Impl.ExpressionProcessor.RegisterCustomProjection``1(System.Linq.Expressions.Expression{System.Func{``0}},System.Func{System.Linq.Expressions.MethodCallExpression,NHibernate.Criterion.IProjection})"]