C# Class SubSonic.Linq.Translation.OracleParameterizer

Parameterization for Oracle is the same as the base Parameterizer, except that all constants are parameterized, not just strings. Not parameterizing all constants can severely hinder Oracle's a bility to scale, because it will reparse the sql and generate a new execution plan for each unique query. Having literals in the queries causes them to not exactly match. This is configurable behavior within Oracle, but we should assume that most devs don't have the ability to tweak the Oracle query analyzer.
Inheritance: Parameterizer
Mostra file Open project: rally25rs/SubSonic-3.0

Protected Properties

Property Type Description
doParameterization bool

Public Methods

Method Description
Parameterize ( Expression expression ) : Expression

Protected Methods

Method Description
VisitConstant ( ConstantExpression c ) : Expression
VisitSelect ( SelectExpression select ) : Expression

Method Details

Parameterize() public static method

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

VisitConstant() protected method

protected VisitConstant ( ConstantExpression c ) : Expression
c System.Linq.Expressions.ConstantExpression
return System.Linq.Expressions.Expression

VisitSelect() protected method

protected VisitSelect ( SelectExpression select ) : Expression
select SelectExpression
return System.Linq.Expressions.Expression

Property Details

doParameterization protected_oe property

protected bool doParameterization
return bool