C# Class Shaolinq.Persistence.Linq.Optimizers.SqlFunctionCoalescer

An optimizer that turns nested SQL function calls into a single function call (if possible) function call.
For example: CONCAT(CONCAT(X, Y), Z) => CONCAT(X, Y, Z)
Inheritance: Shaolinq.Persistence.Linq.Expressions.SqlExpressionVisitor
Mostrar archivo Open project: tumtumtum/Shaolinq Class Usage Examples

Public Methods

Method Description
Coalesce ( Expression expression ) : Expression

Protected Methods

Method Description
VisitFunctionCall ( SqlFunctionCallExpression functionCallExpression ) : Expression

Private Methods

Method Description
SqlFunctionCoalescer ( ) : System.Collections.Generic

Method Details

Coalesce() public static method

public static Coalesce ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

VisitFunctionCall() protected method

protected VisitFunctionCall ( SqlFunctionCallExpression functionCallExpression ) : Expression
functionCallExpression Shaolinq.Persistence.Linq.Expressions.SqlFunctionCallExpression
return System.Linq.Expressions.Expression