Show / Hide Table of Contents

Class ExpressionGenerator

Generates SQL from expression.

Inheritance
System.Object
DbExpressionVisitor
ExpressionGenerator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data.MySql
Assembly: DevZest.Data.MySql.dll
Syntax
public sealed class ExpressionGenerator : DbExpressionVisitor

Properties

Name Description
MySqlVersion

Gets the MySQL version.

ParametersCount

Gets the number of parameters.

SqlBuilder

Gets the string builder for T-SQL generation.

Methods

Name Description
GetDbParamExpression(Int32)

Gets the parameter expression at specified index.

RegisterFunctionHandler(FunctionKey, Action<ExpressionGenerator, DbFunctionExpression>)

Registers handler to generate SQL for custom function.

Visit(DbBinaryExpression)
Visit(DbCaseExpression)
Visit(DbCastExpression)
Visit(DbColumnExpression)
Visit(DbConstantExpression)
Visit(DbFunctionExpression)
Visit(DbParamExpression)
Visit(DbUnaryExpression)

Extension Methods

ColumnExtensions.WithDefaultValue<TColumn, TValue>(TColumn, TValue, String, String)
ColumnExtensions.WithValueComparer<TColumn, TValue>(TColumn, IComparer<TValue>)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest