C# Class Remotion.Linq.SqlBackend.SqlStatementModel.SqlSpecificExpressions.SqlLikeExpression

Represents a sql 'LIKE' command
Inheritance: Remotion.Linq.Clauses.Expressions.ExtensionExpression
Mostra file Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
Accept ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
Create ( Expression searchedText, Expression unescapedSearchText, string likePrefix, string likePostfix ) : Expression
Escape ( Expression expression, string escapeSequence ) : Expression
Escape ( string text, string escapeSequence ) : string
SqlLikeExpression ( Expression left, Expression right, Expression escapeExpression ) : System
ToString ( ) : string

Protected Methods

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

Private Methods

Method Description
BuildRightExpression ( Expression unescapedSearchText, string likePrefix, string likePostfix ) : Expression
Escape ( Expression expression, string replacedSequence, string escapeSequence ) : SqlFunctionExpression

Method Details

Accept() public method

public Accept ( System.Linq.Expressions.ExpressionTreeVisitor visitor ) : Expression
visitor System.Linq.Expressions.ExpressionTreeVisitor
return System.Linq.Expressions.Expression

Create() public static method

public static Create ( Expression searchedText, Expression unescapedSearchText, string likePrefix, string likePostfix ) : Expression
searchedText System.Linq.Expressions.Expression
unescapedSearchText System.Linq.Expressions.Expression
likePrefix string
likePostfix string
return System.Linq.Expressions.Expression

Escape() public static method

public static Escape ( Expression expression, string escapeSequence ) : Expression
expression System.Linq.Expressions.Expression
escapeSequence string
return System.Linq.Expressions.Expression

Escape() public static method

public static Escape ( string text, string escapeSequence ) : string
text string
escapeSequence string
return string

SqlLikeExpression() public method

public SqlLikeExpression ( Expression left, Expression right, Expression escapeExpression ) : System
left System.Linq.Expressions.Expression
right System.Linq.Expressions.Expression
escapeExpression System.Linq.Expressions.Expression
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