Table of Contents

Class FirebirdSqlOptimizer

Namespace
LinqToDB.DataProvider.Firebird
Assembly
linq2db.dll
public class FirebirdSqlOptimizer : BasicSqlOptimizer, ISqlOptimizer
Inheritance
FirebirdSqlOptimizer
Implements
Inherited Members
Extension Methods

Constructors

FirebirdSqlOptimizer(SqlProviderFlags)

public FirebirdSqlOptimizer(SqlProviderFlags sqlProviderFlags)

Parameters

sqlProviderFlags SqlProviderFlags

Fields

LikeFirebirdEscapeSymbols

protected static string[] LikeFirebirdEscapeSymbols

Field Value

string[]

Properties

LikeCharactersToEscape

Characters with special meaning in LIKE predicate (defined by LikeCharactersToEscape) that should be escaped to be used as matched character. Default: ["%", "_", "?", "*", "#", "[", "]"].

public override string[] LikeCharactersToEscape { get; }

Property Value

string[]

LikeValueParameterSupport

public override bool LikeValueParameterSupport { get; }

Property Value

bool

Methods

ConvertExpressionImpl(ISqlExpression, ConvertVisitor<RunOptimizationContext>)

public override ISqlExpression ConvertExpressionImpl(ISqlExpression expression, ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext> visitor)

Parameters

expression ISqlExpression
visitor ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext>

Returns

ISqlExpression

ConvertFunction(SqlFunction)

protected override ISqlExpression ConvertFunction(SqlFunction func)

Parameters

func SqlFunction

Returns

ISqlExpression

ConvertSearchStringPredicate(SearchString, ConvertVisitor<RunOptimizationContext>)

public override ISqlPredicate ConvertSearchStringPredicate(SqlPredicate.SearchString predicate, ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext> visitor)

Parameters

predicate SqlPredicate.SearchString
visitor ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext>

Returns

ISqlPredicate

Finalize(MappingSchema, SqlStatement, DataOptions)

Finalizes query.

public override SqlStatement Finalize(MappingSchema mappingSchema, SqlStatement statement, DataOptions dataOptions)

Parameters

mappingSchema MappingSchema
statement SqlStatement
dataOptions DataOptions

Returns

SqlStatement

Query which is ready for optimization.

FinalizeStatement(SqlStatement, EvaluationContext, DataOptions)

public override SqlStatement FinalizeStatement(SqlStatement statement, EvaluationContext context, DataOptions dataOptions)

Parameters

statement SqlStatement
context EvaluationContext
dataOptions DataOptions

Returns

SqlStatement

IsParameterDependedElement(IQueryElement)

public override bool IsParameterDependedElement(IQueryElement element)

Parameters

element IQueryElement

Returns

bool

OptimizeExpression(ISqlExpression, ConvertVisitor<RunOptimizationContext>)

public override ISqlExpression OptimizeExpression(ISqlExpression expression, ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext> convertVisitor)

Parameters

expression ISqlExpression
convertVisitor ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext>

Returns

ISqlExpression

TransformStatement(SqlStatement, DataOptions)

Used for correcting statement and should return new statement if changes were made.

public override SqlStatement TransformStatement(SqlStatement statement, DataOptions dataOptions)

Parameters

statement SqlStatement
dataOptions DataOptions

Returns

SqlStatement