C# Class Remotion.Linq.SqlBackend.SqlPreparation.SqlPreparationQueryModelVisitor

SqlPreparationQueryModelVisitor generates a SqlStatement from a query model.
Inheritance: QueryModelVisitorBase
Datei anzeigen Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
AddJoinClause ( Remotion.Linq.Clauses.JoinClause joinClause ) : SqlTableBase
AddPreparedFromExpression ( FromExpressionInfo fromExpressionInfo ) : void
AddQuerySource ( IQuerySource source, Expression fromExpression ) : SqlTableBase
GetSqlStatement ( ) : SqlStatement
TransformQueryModel ( QueryModel queryModel, ISqlPreparationContext parentPreparationContext, ISqlPreparationStage stage, UniqueIdentifierGenerator generator, ResultOperatorHandlerRegistry resultOperatorHandlerRegistry ) : SqlStatement
VisitAdditionalFromClause ( Remotion.Linq.Clauses.AdditionalFromClause fromClause, QueryModel queryModel, int index ) : void
VisitGroupJoinClause ( Remotion.Linq.Clauses.GroupJoinClause groupJoinClause, QueryModel queryModel, int index ) : void
VisitJoinClause ( Remotion.Linq.Clauses.JoinClause joinClause, QueryModel queryModel, int index ) : void
VisitMainFromClause ( Remotion.Linq.Clauses.MainFromClause fromClause, QueryModel queryModel ) : void
VisitOrderByClause ( Remotion.Linq.Clauses.OrderByClause orderByClause, QueryModel queryModel, int index ) : void
VisitQueryModel ( QueryModel queryModel ) : void
VisitResultOperator ( ResultOperatorBase resultOperator, QueryModel queryModel, int index ) : void
VisitSelectClause ( Remotion.Linq.Clauses.SelectClause selectClause, QueryModel queryModel ) : void
VisitWhereClause ( Remotion.Linq.Clauses.WhereClause whereClause, QueryModel queryModel, int index ) : void

Protected Methods

Method Description
SqlPreparationQueryModelVisitor ( ISqlPreparationContext parentContext, ISqlPreparationStage stage, UniqueIdentifierGenerator generator, ResultOperatorHandlerRegistry resultOperatorHandlerRegistry ) : System

Private Methods

Method Description
GetConstantCollectionValue ( QueryModel queryModel ) : ICollection

Method Details

AddJoinClause() public method

public AddJoinClause ( Remotion.Linq.Clauses.JoinClause joinClause ) : SqlTableBase
joinClause Remotion.Linq.Clauses.JoinClause
return Remotion.Linq.SqlBackend.SqlStatementModel.SqlTableBase

AddPreparedFromExpression() public method

public AddPreparedFromExpression ( FromExpressionInfo fromExpressionInfo ) : void
fromExpressionInfo FromExpressionInfo
return void

AddQuerySource() public method

public AddQuerySource ( IQuerySource source, Expression fromExpression ) : SqlTableBase
source IQuerySource
fromExpression System.Linq.Expressions.Expression
return Remotion.Linq.SqlBackend.SqlStatementModel.SqlTableBase

GetSqlStatement() public method

public GetSqlStatement ( ) : SqlStatement
return Remotion.Linq.SqlBackend.SqlStatementModel.SqlStatement

SqlPreparationQueryModelVisitor() protected method

protected SqlPreparationQueryModelVisitor ( ISqlPreparationContext parentContext, ISqlPreparationStage stage, UniqueIdentifierGenerator generator, ResultOperatorHandlerRegistry resultOperatorHandlerRegistry ) : System
parentContext ISqlPreparationContext
stage ISqlPreparationStage
generator UniqueIdentifierGenerator
resultOperatorHandlerRegistry ResultOperatorHandlerRegistry
return System

TransformQueryModel() public static method

public static TransformQueryModel ( QueryModel queryModel, ISqlPreparationContext parentPreparationContext, ISqlPreparationStage stage, UniqueIdentifierGenerator generator, ResultOperatorHandlerRegistry resultOperatorHandlerRegistry ) : SqlStatement
queryModel QueryModel
parentPreparationContext ISqlPreparationContext
stage ISqlPreparationStage
generator UniqueIdentifierGenerator
resultOperatorHandlerRegistry ResultOperatorHandlerRegistry
return Remotion.Linq.SqlBackend.SqlStatementModel.SqlStatement

VisitAdditionalFromClause() public method

public VisitAdditionalFromClause ( Remotion.Linq.Clauses.AdditionalFromClause fromClause, QueryModel queryModel, int index ) : void
fromClause Remotion.Linq.Clauses.AdditionalFromClause
queryModel QueryModel
index int
return void

VisitGroupJoinClause() public method

public VisitGroupJoinClause ( Remotion.Linq.Clauses.GroupJoinClause groupJoinClause, QueryModel queryModel, int index ) : void
groupJoinClause Remotion.Linq.Clauses.GroupJoinClause
queryModel QueryModel
index int
return void

VisitJoinClause() public method

public VisitJoinClause ( Remotion.Linq.Clauses.JoinClause joinClause, QueryModel queryModel, int index ) : void
joinClause Remotion.Linq.Clauses.JoinClause
queryModel QueryModel
index int
return void

VisitMainFromClause() public method

public VisitMainFromClause ( Remotion.Linq.Clauses.MainFromClause fromClause, QueryModel queryModel ) : void
fromClause Remotion.Linq.Clauses.MainFromClause
queryModel QueryModel
return void

VisitOrderByClause() public method

public VisitOrderByClause ( Remotion.Linq.Clauses.OrderByClause orderByClause, QueryModel queryModel, int index ) : void
orderByClause Remotion.Linq.Clauses.OrderByClause
queryModel QueryModel
index int
return void

VisitQueryModel() public method

public VisitQueryModel ( QueryModel queryModel ) : void
queryModel QueryModel
return void

VisitResultOperator() public method

public VisitResultOperator ( ResultOperatorBase resultOperator, QueryModel queryModel, int index ) : void
resultOperator ResultOperatorBase
queryModel QueryModel
index int
return void

VisitSelectClause() public method

public VisitSelectClause ( Remotion.Linq.Clauses.SelectClause selectClause, QueryModel queryModel ) : void
selectClause Remotion.Linq.Clauses.SelectClause
queryModel QueryModel
return void

VisitWhereClause() public method

public VisitWhereClause ( Remotion.Linq.Clauses.WhereClause whereClause, QueryModel queryModel, int index ) : void
whereClause Remotion.Linq.Clauses.WhereClause
queryModel QueryModel
index int
return void