C# Class NLite.Data.Linq.Expressions.DbExpressionVisitor

An extended expression visitor including custom DbExpression nodes
Inheritance: NLite.Data.Linq.ExpressionVisitor
Datei anzeigen Open project: netcasewqs/elinq

Public Methods

Method Description
Visit ( Expression exp ) : Expression

Protected Methods

Method Description
UpdateAggregate ( AggregateExpression aggregate, Type type, string aggType, Expression arg, bool isDistinct ) : AggregateExpression
UpdateAggregateSubquery ( AggregateSubqueryExpression aggregate, ScalarExpression subquery ) : AggregateSubqueryExpression
UpdateBatch ( BatchExpression batch, Expression input, LambdaExpression operation ) : BatchExpression
UpdateBetween ( BetweenExpression between, Expression expression, Expression lower, Expression upper ) : BetweenExpression
UpdateBlock ( BlockCommand block, IList commands ) : BlockCommand
UpdateClientJoin ( ClientJoinExpression join, ProjectionExpression projection, IEnumerable outerKey, IEnumerable innerKey ) : ClientJoinExpression
UpdateColumnAssignment ( ColumnAssignment ca, ColumnExpression c, Expression e ) : ColumnAssignment
UpdateDeclaration ( DeclarationCommand decl, IEnumerable variables, SelectExpression source ) : DeclarationCommand
UpdateDelete ( DeleteCommand delete, TableExpression table, Expression where ) : DeleteCommand
UpdateEntity ( EntityExpression entity, Expression expression ) : EntityExpression
UpdateExists ( ExistsExpression exists, SelectExpression select ) : ExistsExpression
UpdateFunction ( FunctionExpression func, string name, IEnumerable arguments ) : FunctionExpression
UpdateIf ( IFCommand ifx, Expression check, Expression ifTrue, Expression ifFalse ) : IFCommand
UpdateIn ( InExpression @in, Expression expression, SelectExpression select, IEnumerable values ) : InExpression
UpdateInsert ( InsertCommand insert, TableExpression table, IEnumerable assignments ) : InsertCommand
UpdateIsNull ( IsNullExpression isnull, Expression expression ) : IsNullExpression
UpdateJoin ( JoinExpression join, JoinType joinType, Expression left, Expression right, Expression condition ) : JoinExpression
UpdateOuterJoined ( OuterJoinedExpression outer, Expression test, Expression expression ) : OuterJoinedExpression
UpdateProjection ( ProjectionExpression proj, SelectExpression select, Expression projector, LambdaExpression aggregator ) : ProjectionExpression
UpdateRowNumber ( RowNumberExpression rowNumber, IEnumerable orderBy ) : RowNumberExpression
UpdateScalar ( ScalarExpression scalar, SelectExpression select ) : ScalarExpression
UpdateSelect ( SelectExpression select, Expression from, Expression where, IEnumerable orderBy, IEnumerable groupBy, Expression skip, Expression take, bool isDistinct, bool isReverse, IEnumerable columns ) : SelectExpression
UpdateUpdate ( UpdateCommand update, TableExpression table, Expression where, IEnumerable assignments ) : UpdateCommand
VisitAggregate ( AggregateExpression aggregate ) : Expression
VisitAggregateSubquery ( AggregateSubqueryExpression aggregate ) : Expression
VisitBatch ( BatchExpression batch ) : Expression
VisitBetween ( BetweenExpression between ) : Expression
VisitBlock ( BlockCommand block ) : Expression
VisitClientJoin ( ClientJoinExpression join ) : Expression
VisitColumn ( ColumnExpression column ) : Expression
VisitColumnAssignment ( ColumnAssignment ca ) : ColumnAssignment
VisitColumnAssignments ( ReadOnlyCollection assignments ) : ReadOnlyCollection
VisitColumnDeclarations ( ReadOnlyCollection columns ) : ReadOnlyCollection
VisitCommand ( CommandExpression command ) : Expression
VisitDeclaration ( DeclarationCommand decl ) : Expression
VisitDelete ( DeleteCommand delete ) : Expression
VisitEntity ( EntityExpression entity ) : Expression
VisitExists ( ExistsExpression exists ) : Expression
VisitFunction ( FunctionExpression func ) : Expression
VisitIf ( IFCommand ifx ) : Expression
VisitIn ( InExpression @in ) : Expression
VisitInsert ( InsertCommand insert ) : Expression
VisitIsNull ( IsNullExpression isnull ) : Expression
VisitJoin ( JoinExpression join ) : Expression
VisitNamedValue ( NamedValueExpression value ) : Expression
VisitOrderBy ( ReadOnlyCollection expressions ) : ReadOnlyCollection
VisitOuterJoined ( OuterJoinedExpression outer ) : Expression
VisitProjection ( ProjectionExpression proj ) : Expression
VisitRowNumber ( RowNumberExpression rowNumber ) : Expression
VisitScalar ( ScalarExpression scalar ) : Expression
VisitSelect ( SelectExpression select ) : Expression
VisitSource ( Expression source ) : Expression
VisitSubquery ( SubqueryExpression subquery ) : Expression
VisitTable ( TableExpression table ) : Expression
VisitUpdate ( UpdateCommand update ) : Expression
VisitVariable ( VariableExpression vex ) : Expression
VisitVariableDeclarations ( ReadOnlyCollection decls ) : ReadOnlyCollection

Method Details

UpdateAggregate() protected method

protected UpdateAggregate ( AggregateExpression aggregate, Type type, string aggType, Expression arg, bool isDistinct ) : AggregateExpression
aggregate AggregateExpression
type System.Type
aggType string
arg System.Linq.Expressions.Expression
isDistinct bool
return AggregateExpression

UpdateAggregateSubquery() protected method

protected UpdateAggregateSubquery ( AggregateSubqueryExpression aggregate, ScalarExpression subquery ) : AggregateSubqueryExpression
aggregate AggregateSubqueryExpression
subquery ScalarExpression
return AggregateSubqueryExpression

UpdateBatch() protected method

protected UpdateBatch ( BatchExpression batch, Expression input, LambdaExpression operation ) : BatchExpression
batch BatchExpression
input System.Linq.Expressions.Expression
operation System.Linq.Expressions.LambdaExpression
return BatchExpression

UpdateBetween() protected method

protected UpdateBetween ( BetweenExpression between, Expression expression, Expression lower, Expression upper ) : BetweenExpression
between BetweenExpression
expression System.Linq.Expressions.Expression
lower System.Linq.Expressions.Expression
upper System.Linq.Expressions.Expression
return BetweenExpression

UpdateBlock() protected method

protected UpdateBlock ( BlockCommand block, IList commands ) : BlockCommand
block BlockCommand
commands IList
return BlockCommand

UpdateClientJoin() protected method

protected UpdateClientJoin ( ClientJoinExpression join, ProjectionExpression projection, IEnumerable outerKey, IEnumerable innerKey ) : ClientJoinExpression
join ClientJoinExpression
projection ProjectionExpression
outerKey IEnumerable
innerKey IEnumerable
return ClientJoinExpression

UpdateColumnAssignment() protected method

protected UpdateColumnAssignment ( ColumnAssignment ca, ColumnExpression c, Expression e ) : ColumnAssignment
ca ColumnAssignment
c ColumnExpression
e System.Linq.Expressions.Expression
return ColumnAssignment

UpdateDeclaration() protected method

protected UpdateDeclaration ( DeclarationCommand decl, IEnumerable variables, SelectExpression source ) : DeclarationCommand
decl DeclarationCommand
variables IEnumerable
source SelectExpression
return DeclarationCommand

UpdateDelete() protected method

protected UpdateDelete ( DeleteCommand delete, TableExpression table, Expression where ) : DeleteCommand
delete DeleteCommand
table TableExpression
where System.Linq.Expressions.Expression
return DeleteCommand

UpdateEntity() protected method

protected UpdateEntity ( EntityExpression entity, Expression expression ) : EntityExpression
entity EntityExpression
expression System.Linq.Expressions.Expression
return EntityExpression

UpdateExists() protected method

protected UpdateExists ( ExistsExpression exists, SelectExpression select ) : ExistsExpression
exists ExistsExpression
select SelectExpression
return ExistsExpression

UpdateFunction() protected method

protected UpdateFunction ( FunctionExpression func, string name, IEnumerable arguments ) : FunctionExpression
func FunctionExpression
name string
arguments IEnumerable
return FunctionExpression

UpdateIf() protected method

protected UpdateIf ( IFCommand ifx, Expression check, Expression ifTrue, Expression ifFalse ) : IFCommand
ifx IFCommand
check System.Linq.Expressions.Expression
ifTrue System.Linq.Expressions.Expression
ifFalse System.Linq.Expressions.Expression
return IFCommand

UpdateIn() protected method

protected UpdateIn ( InExpression @in, Expression expression, SelectExpression select, IEnumerable values ) : InExpression
@in InExpression
expression System.Linq.Expressions.Expression
select SelectExpression
values IEnumerable
return InExpression

UpdateInsert() protected method

protected UpdateInsert ( InsertCommand insert, TableExpression table, IEnumerable assignments ) : InsertCommand
insert InsertCommand
table TableExpression
assignments IEnumerable
return InsertCommand

UpdateIsNull() protected method

protected UpdateIsNull ( IsNullExpression isnull, Expression expression ) : IsNullExpression
isnull IsNullExpression
expression System.Linq.Expressions.Expression
return IsNullExpression

UpdateJoin() protected method

protected UpdateJoin ( JoinExpression join, JoinType joinType, Expression left, Expression right, Expression condition ) : JoinExpression
join JoinExpression
joinType JoinType
left System.Linq.Expressions.Expression
right System.Linq.Expressions.Expression
condition System.Linq.Expressions.Expression
return JoinExpression

UpdateOuterJoined() protected method

protected UpdateOuterJoined ( OuterJoinedExpression outer, Expression test, Expression expression ) : OuterJoinedExpression
outer OuterJoinedExpression
test System.Linq.Expressions.Expression
expression System.Linq.Expressions.Expression
return OuterJoinedExpression

UpdateProjection() protected method

protected UpdateProjection ( ProjectionExpression proj, SelectExpression select, Expression projector, LambdaExpression aggregator ) : ProjectionExpression
proj ProjectionExpression
select SelectExpression
projector System.Linq.Expressions.Expression
aggregator System.Linq.Expressions.LambdaExpression
return ProjectionExpression

UpdateRowNumber() protected method

protected UpdateRowNumber ( RowNumberExpression rowNumber, IEnumerable orderBy ) : RowNumberExpression
rowNumber RowNumberExpression
orderBy IEnumerable
return RowNumberExpression

UpdateScalar() protected method

protected UpdateScalar ( ScalarExpression scalar, SelectExpression select ) : ScalarExpression
scalar ScalarExpression
select SelectExpression
return ScalarExpression

UpdateSelect() protected method

protected UpdateSelect ( SelectExpression select, Expression from, Expression where, IEnumerable orderBy, IEnumerable groupBy, Expression skip, Expression take, bool isDistinct, bool isReverse, IEnumerable columns ) : SelectExpression
select SelectExpression
from System.Linq.Expressions.Expression
where System.Linq.Expressions.Expression
orderBy IEnumerable
groupBy IEnumerable
skip System.Linq.Expressions.Expression
take System.Linq.Expressions.Expression
isDistinct bool
isReverse bool
columns IEnumerable
return SelectExpression

UpdateUpdate() protected method

protected UpdateUpdate ( UpdateCommand update, TableExpression table, Expression where, IEnumerable assignments ) : UpdateCommand
update UpdateCommand
table TableExpression
where System.Linq.Expressions.Expression
assignments IEnumerable
return UpdateCommand

Visit() public method

public Visit ( Expression exp ) : Expression
exp System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

VisitAggregate() protected method

protected VisitAggregate ( AggregateExpression aggregate ) : Expression
aggregate AggregateExpression
return System.Linq.Expressions.Expression

VisitAggregateSubquery() protected method

protected VisitAggregateSubquery ( AggregateSubqueryExpression aggregate ) : Expression
aggregate AggregateSubqueryExpression
return System.Linq.Expressions.Expression

VisitBatch() protected method

protected VisitBatch ( BatchExpression batch ) : Expression
batch BatchExpression
return System.Linq.Expressions.Expression

VisitBetween() protected method

protected VisitBetween ( BetweenExpression between ) : Expression
between BetweenExpression
return System.Linq.Expressions.Expression

VisitBlock() protected method

protected VisitBlock ( BlockCommand block ) : Expression
block BlockCommand
return System.Linq.Expressions.Expression

VisitClientJoin() protected method

protected VisitClientJoin ( ClientJoinExpression join ) : Expression
join ClientJoinExpression
return System.Linq.Expressions.Expression

VisitColumn() protected method

protected VisitColumn ( ColumnExpression column ) : Expression
column ColumnExpression
return System.Linq.Expressions.Expression

VisitColumnAssignment() protected method

protected VisitColumnAssignment ( ColumnAssignment ca ) : ColumnAssignment
ca ColumnAssignment
return ColumnAssignment

VisitColumnAssignments() protected method

protected VisitColumnAssignments ( ReadOnlyCollection assignments ) : ReadOnlyCollection
assignments ReadOnlyCollection
return ReadOnlyCollection

VisitColumnDeclarations() protected method

protected VisitColumnDeclarations ( ReadOnlyCollection columns ) : ReadOnlyCollection
columns ReadOnlyCollection
return ReadOnlyCollection

VisitCommand() protected method

protected VisitCommand ( CommandExpression command ) : Expression
command CommandExpression
return System.Linq.Expressions.Expression

VisitDeclaration() protected method

protected VisitDeclaration ( DeclarationCommand decl ) : Expression
decl DeclarationCommand
return System.Linq.Expressions.Expression

VisitDelete() protected method

protected VisitDelete ( DeleteCommand delete ) : Expression
delete DeleteCommand
return System.Linq.Expressions.Expression

VisitEntity() protected method

protected VisitEntity ( EntityExpression entity ) : Expression
entity EntityExpression
return System.Linq.Expressions.Expression

VisitExists() protected method

protected VisitExists ( ExistsExpression exists ) : Expression
exists ExistsExpression
return System.Linq.Expressions.Expression

VisitFunction() protected method

protected VisitFunction ( FunctionExpression func ) : Expression
func FunctionExpression
return System.Linq.Expressions.Expression

VisitIf() protected method

protected VisitIf ( IFCommand ifx ) : Expression
ifx IFCommand
return System.Linq.Expressions.Expression

VisitIn() protected method

protected VisitIn ( InExpression @in ) : Expression
@in InExpression
return System.Linq.Expressions.Expression

VisitInsert() protected method

protected VisitInsert ( InsertCommand insert ) : Expression
insert InsertCommand
return System.Linq.Expressions.Expression

VisitIsNull() protected method

protected VisitIsNull ( IsNullExpression isnull ) : Expression
isnull IsNullExpression
return System.Linq.Expressions.Expression

VisitJoin() protected method

protected VisitJoin ( JoinExpression join ) : Expression
join JoinExpression
return System.Linq.Expressions.Expression

VisitNamedValue() protected method

protected VisitNamedValue ( NamedValueExpression value ) : Expression
value NamedValueExpression
return System.Linq.Expressions.Expression

VisitOrderBy() protected method

protected VisitOrderBy ( ReadOnlyCollection expressions ) : ReadOnlyCollection
expressions ReadOnlyCollection
return ReadOnlyCollection

VisitOuterJoined() protected method

protected VisitOuterJoined ( OuterJoinedExpression outer ) : Expression
outer OuterJoinedExpression
return System.Linq.Expressions.Expression

VisitProjection() protected method

protected VisitProjection ( ProjectionExpression proj ) : Expression
proj ProjectionExpression
return System.Linq.Expressions.Expression

VisitRowNumber() protected method

protected VisitRowNumber ( RowNumberExpression rowNumber ) : Expression
rowNumber RowNumberExpression
return System.Linq.Expressions.Expression

VisitScalar() protected method

protected VisitScalar ( ScalarExpression scalar ) : Expression
scalar ScalarExpression
return System.Linq.Expressions.Expression

VisitSelect() protected method

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

VisitSource() protected method

protected VisitSource ( Expression source ) : Expression
source System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

VisitSubquery() protected method

protected VisitSubquery ( SubqueryExpression subquery ) : Expression
subquery SubqueryExpression
return System.Linq.Expressions.Expression

VisitTable() protected method

protected VisitTable ( TableExpression table ) : Expression
table TableExpression
return System.Linq.Expressions.Expression

VisitUpdate() protected method

protected VisitUpdate ( UpdateCommand update ) : Expression
update UpdateCommand
return System.Linq.Expressions.Expression

VisitVariable() protected method

protected VisitVariable ( VariableExpression vex ) : Expression
vex VariableExpression
return System.Linq.Expressions.Expression

VisitVariableDeclarations() protected method

protected VisitVariableDeclarations ( ReadOnlyCollection decls ) : ReadOnlyCollection
decls ReadOnlyCollection
return ReadOnlyCollection