C# Class Rock.Reporting.SelectExpressionExtractor

Helper class than can extract the first inner SELECT from an IQueryable. Useful for building DataSelect expressions for Reporting
Mostrar archivo Open project: NewSpring/Rock

Public Methods

Method Description
Extract ( IQueryable qry, MemberExpression propertyExpression, string parameterName ) : Expression

Extracts the first inner SELECT from an IQueryable. Useful for building DataSelect expressions for Reporting

Method Details

Extract() public static method

Extracts the first inner SELECT from an IQueryable. Useful for building DataSelect expressions for Reporting
public static Extract ( IQueryable qry, MemberExpression propertyExpression, string parameterName ) : Expression
qry IQueryable The qry.
propertyExpression System.Linq.Expressions.MemberExpression The property expression.
parameterName string Name of the parameter (forexample: 'p') from the qry to replace with the parameterExpression.
return System.Linq.Expressions.Expression