C# Class Shaolinq.Persistence.Linq.Expressions.SqlExpressionHasher

Show file Open project: tumtumtum/Shaolinq Class Usage Examples

Public Methods

Method Description
Hash ( Expression expression ) : int
Hash ( Expression expression, SqlExpressionComparerOptions options ) : int

Protected Methods

Method Description
Visit ( Expression expression ) : Expression
VisitAggregate ( SqlAggregateExpression expression ) : Expression
VisitAggregateSubquery ( SqlAggregateSubqueryExpression expression ) : Expression
VisitColumn ( SqlColumnExpression expression ) : Expression
VisitColumnDeclaration ( SqlColumnDeclaration expression ) : SqlColumnDeclaration
VisitColumnDefinition ( SqlColumnDefinitionExpression expression ) : Expression
VisitConstant ( ConstantExpression constantExpression ) : Expression
VisitConstantPlaceholder ( SqlConstantPlaceholderExpression constantPlaceholder ) : Expression
VisitConstraintAction ( SqlConstraintActionExpression expression ) : Expression
VisitCreateIndex ( SqlCreateIndexExpression expression ) : Expression
VisitCreateTable ( SqlCreateTableExpression expression ) : Expression
VisitCreateType ( SqlCreateTypeExpression expression ) : Expression
VisitForeignKeyConstraint ( SqlForeignKeyConstraintExpression expression ) : Expression
VisitFunctionCall ( SqlFunctionCallExpression expression ) : Expression
VisitIndexedColumn ( SqlIndexedColumnExpression expression ) : Expression
VisitInsertInto ( SqlInsertIntoExpression expression ) : Expression
VisitJoin ( SqlJoinExpression expression ) : Expression
VisitKeyword ( SqlKeywordExpression expression ) : Expression
VisitOrderBy ( SqlOrderByExpression expression ) : Expression
VisitPragma ( SqlPragmaExpression expression ) : Expression
VisitProjection ( SqlProjectionExpression expression ) : Expression
VisitQueryArgument ( SqlQueryArgumentExpression expression ) : Expression
VisitReferencesColumn ( SqlReferencesColumnExpression expression ) : Expression
VisitSelect ( SqlSelectExpression expression ) : Expression
VisitSetCommand ( SqlSetCommandExpression expression ) : Expression
VisitSimpleConstraint ( SqlSimpleConstraintExpression expression ) : Expression
VisitTable ( SqlTableExpression expression ) : Expression
VisitTableHint ( SqlTableHintExpression expression ) : Expression
VisitType ( SqlTypeExpression expression ) : Expression
VisitUnion ( SqlUnionExpression expression ) : Expression
VisitUpdate ( SqlUpdateExpression expression ) : Expression
VisitVariableDeclaration ( SqlVariableDeclarationExpression expression ) : Expression

Private Methods

Method Description
SqlExpressionHasher ( SqlExpressionComparerOptions options ) : System.Linq.Expressions

Method Details

Hash() public static method

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

Hash() public static method

public static Hash ( Expression expression, SqlExpressionComparerOptions options ) : int
expression System.Linq.Expressions.Expression
options SqlExpressionComparerOptions
return int

Visit() protected method

protected Visit ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

VisitAggregate() protected method

protected VisitAggregate ( SqlAggregateExpression expression ) : Expression
expression SqlAggregateExpression
return System.Linq.Expressions.Expression

VisitAggregateSubquery() protected method

protected VisitAggregateSubquery ( SqlAggregateSubqueryExpression expression ) : Expression
expression SqlAggregateSubqueryExpression
return System.Linq.Expressions.Expression

VisitColumn() protected method

protected VisitColumn ( SqlColumnExpression expression ) : Expression
expression SqlColumnExpression
return System.Linq.Expressions.Expression

VisitColumnDeclaration() protected method

protected VisitColumnDeclaration ( SqlColumnDeclaration expression ) : SqlColumnDeclaration
expression SqlColumnDeclaration
return SqlColumnDeclaration

VisitColumnDefinition() protected method

protected VisitColumnDefinition ( SqlColumnDefinitionExpression expression ) : Expression
expression SqlColumnDefinitionExpression
return System.Linq.Expressions.Expression

VisitConstant() protected method

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

VisitConstantPlaceholder() protected method

protected VisitConstantPlaceholder ( SqlConstantPlaceholderExpression constantPlaceholder ) : Expression
constantPlaceholder SqlConstantPlaceholderExpression
return System.Linq.Expressions.Expression

VisitConstraintAction() protected method

protected VisitConstraintAction ( SqlConstraintActionExpression expression ) : Expression
expression SqlConstraintActionExpression
return System.Linq.Expressions.Expression

VisitCreateIndex() protected method

protected VisitCreateIndex ( SqlCreateIndexExpression expression ) : Expression
expression SqlCreateIndexExpression
return System.Linq.Expressions.Expression

VisitCreateTable() protected method

protected VisitCreateTable ( SqlCreateTableExpression expression ) : Expression
expression SqlCreateTableExpression
return System.Linq.Expressions.Expression

VisitCreateType() protected method

protected VisitCreateType ( SqlCreateTypeExpression expression ) : Expression
expression SqlCreateTypeExpression
return System.Linq.Expressions.Expression

VisitForeignKeyConstraint() protected method

protected VisitForeignKeyConstraint ( SqlForeignKeyConstraintExpression expression ) : Expression
expression SqlForeignKeyConstraintExpression
return System.Linq.Expressions.Expression

VisitFunctionCall() protected method

protected VisitFunctionCall ( SqlFunctionCallExpression expression ) : Expression
expression SqlFunctionCallExpression
return System.Linq.Expressions.Expression

VisitIndexedColumn() protected method

protected VisitIndexedColumn ( SqlIndexedColumnExpression expression ) : Expression
expression SqlIndexedColumnExpression
return System.Linq.Expressions.Expression

VisitInsertInto() protected method

protected VisitInsertInto ( SqlInsertIntoExpression expression ) : Expression
expression SqlInsertIntoExpression
return System.Linq.Expressions.Expression

VisitJoin() protected method

protected VisitJoin ( SqlJoinExpression expression ) : Expression
expression SqlJoinExpression
return System.Linq.Expressions.Expression

VisitKeyword() protected method

protected VisitKeyword ( SqlKeywordExpression expression ) : Expression
expression SqlKeywordExpression
return System.Linq.Expressions.Expression

VisitOrderBy() protected method

protected VisitOrderBy ( SqlOrderByExpression expression ) : Expression
expression SqlOrderByExpression
return System.Linq.Expressions.Expression

VisitPragma() protected method

protected VisitPragma ( SqlPragmaExpression expression ) : Expression
expression SqlPragmaExpression
return System.Linq.Expressions.Expression

VisitProjection() protected method

protected VisitProjection ( SqlProjectionExpression expression ) : Expression
expression SqlProjectionExpression
return System.Linq.Expressions.Expression

VisitQueryArgument() protected method

protected VisitQueryArgument ( SqlQueryArgumentExpression expression ) : Expression
expression SqlQueryArgumentExpression
return System.Linq.Expressions.Expression

VisitReferencesColumn() protected method

protected VisitReferencesColumn ( SqlReferencesColumnExpression expression ) : Expression
expression SqlReferencesColumnExpression
return System.Linq.Expressions.Expression

VisitSelect() protected method

protected VisitSelect ( SqlSelectExpression expression ) : Expression
expression SqlSelectExpression
return System.Linq.Expressions.Expression

VisitSetCommand() protected method

protected VisitSetCommand ( SqlSetCommandExpression expression ) : Expression
expression SqlSetCommandExpression
return System.Linq.Expressions.Expression

VisitSimpleConstraint() protected method

protected VisitSimpleConstraint ( SqlSimpleConstraintExpression expression ) : Expression
expression SqlSimpleConstraintExpression
return System.Linq.Expressions.Expression

VisitTable() protected method

protected VisitTable ( SqlTableExpression expression ) : Expression
expression SqlTableExpression
return System.Linq.Expressions.Expression

VisitTableHint() protected method

protected VisitTableHint ( SqlTableHintExpression expression ) : Expression
expression SqlTableHintExpression
return System.Linq.Expressions.Expression

VisitType() protected method

protected VisitType ( SqlTypeExpression expression ) : Expression
expression SqlTypeExpression
return System.Linq.Expressions.Expression

VisitUnion() protected method

protected VisitUnion ( SqlUnionExpression expression ) : Expression
expression SqlUnionExpression
return System.Linq.Expressions.Expression

VisitUpdate() protected method

protected VisitUpdate ( SqlUpdateExpression expression ) : Expression
expression SqlUpdateExpression
return System.Linq.Expressions.Expression

VisitVariableDeclaration() protected method

protected VisitVariableDeclaration ( SqlVariableDeclarationExpression expression ) : Expression
expression SqlVariableDeclarationExpression
return System.Linq.Expressions.Expression