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
Afficher le fichier Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
VisitChildren ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression

Method Details

Generate() public méthode

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

SqlCustomTextExpression() public méthode

public SqlCustomTextExpression ( string sqlText, Type expressionType ) : System
sqlText string
expressionType System.Type
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

VisitChildren() protected méthode

protected VisitChildren ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
visitor System.Linq.Expressions.ExpressionTreeVisitor
Résultat System.Linq.Expressions.Expression