C# Class Remotion.Linq.SqlBackend.SqlGeneration.SqlCustomTextExpression

SqlCustomTextExpression can be used to insert custom SQL text into the SQL generated by SqlGeneratingExpressionVisitor. The custom text is inserted into the statement as is, it is not escaped. Therefore, the provider making use of SqlCustomTextExpression has to make sure the custom text cannot lead to SQL injection attacks.
Inheritance: SqlCustomTextGeneratorExpressionBase
ファイルを表示 Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
Generate ( ISqlCommandBuilder commandBuilder, System.Linq.Expressions.ExpressionTreeVisitor textGeneratingExpressionVisitor, ISqlGenerationStage stage ) : void
SqlCustomTextExpression ( string sqlText, Type expressionType ) : System
ToString ( ) : string

Protected Methods

Method Description
VisitChildren ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression

Method Details

Generate() public method

public Generate ( ISqlCommandBuilder commandBuilder, System.Linq.Expressions.ExpressionTreeVisitor textGeneratingExpressionVisitor, ISqlGenerationStage stage ) : void
commandBuilder ISqlCommandBuilder
textGeneratingExpressionVisitor System.Linq.Expressions.ExpressionTreeVisitor
stage ISqlGenerationStage
return void

SqlCustomTextExpression() public method

public SqlCustomTextExpression ( string sqlText, Type expressionType ) : System
sqlText string
expressionType System.Type
return System

ToString() public method

public ToString ( ) : string
return string

VisitChildren() protected method

protected VisitChildren ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
visitor System.Linq.Expressions.ExpressionTreeVisitor
return System.Linq.Expressions.Expression