C# Класс PetShop.Data.SqlExpressionParser

Наследование: ExpressionParserBase
Показать файл Открыть проект

Открытые методы

Метод Описание
Parse ( String value ) : String

Parses the specified value into separate search terms.

SqlExpressionParser ( String propertyName ) : System

Initializes a new instance of the SqlExpressionParser class.

SqlExpressionParser ( String propertyName, SqlComparisonType comparisonType ) : System

Initializes a new instance of the SqlExpressionParser class.

SqlExpressionParser ( String propertyName, SqlComparisonType comparisonType, bool ignoreCase ) : System

Initializes a new instance of the SqlExpressionParser class.

SqlExpressionParser ( String propertyName, bool ignoreCase ) : System

Initializes a new instance of the SqlExpressionParser class.

Защищенные методы

Метод Описание
AppendAnd ( ) : void

Appends "AND" to the SQL statement.

AppendOr ( ) : void

Appends "OR" to the SQL statement.

AppendSearchText ( string searchText ) : void

Appends the specified search text to the SQL statement.

AppendSpace ( ) : void

Appends a space to the SQL statement.

CloseGrouping ( ) : void

Appends a right parentheses to the SQL statement.

Contains ( String column, String value, bool ignoreCase ) : String

Creates a SqlComparisonType.Contains expression.

EndsWith ( String column, String value, bool ignoreCase ) : String

Creates a SqlComparisonType.EndsWith expression.

Equals ( String column, String value, bool ignoreCase ) : String

Creates a SqlComparisonType.Equals expression.

Like ( String column, String value, bool ignoreCase ) : String

Creates a SqlComparisonType.Like expression.

OpenGrouping ( ) : void

Appends a left parentheses to the SQL statement.

StartsWith ( String column, String value, bool ignoreCase ) : String

Creates a SqlComparisonType.StartsWith expression.

WrapWithSQL ( String propertyName, String value, bool ignoreCase ) : String

Converts the search text into a valid search expression.

Описание методов

AppendAnd() защищенный Метод

Appends "AND" to the SQL statement.
protected AppendAnd ( ) : void
Результат void

AppendOr() защищенный Метод

Appends "OR" to the SQL statement.
protected AppendOr ( ) : void
Результат void

AppendSearchText() защищенный Метод

Appends the specified search text to the SQL statement.
protected AppendSearchText ( string searchText ) : void
searchText string The search text to append.
Результат void

AppendSpace() защищенный Метод

Appends a space to the SQL statement.
protected AppendSpace ( ) : void
Результат void

CloseGrouping() защищенный Метод

Appends a right parentheses to the SQL statement.
protected CloseGrouping ( ) : void
Результат void

Contains() защищенный Метод

Creates a SqlComparisonType.Contains expression.
protected Contains ( String column, String value, bool ignoreCase ) : String
column String
value String
ignoreCase bool
Результат String

EndsWith() защищенный Метод

Creates a SqlComparisonType.EndsWith expression.
protected EndsWith ( String column, String value, bool ignoreCase ) : String
column String
value String
ignoreCase bool
Результат String

Equals() защищенный Метод

Creates a SqlComparisonType.Equals expression.
protected Equals ( String column, String value, bool ignoreCase ) : String
column String
value String
ignoreCase bool
Результат String

Like() защищенный Метод

Creates a SqlComparisonType.Like expression.
protected Like ( String column, String value, bool ignoreCase ) : String
column String
value String
ignoreCase bool
Результат String

OpenGrouping() защищенный Метод

Appends a left parentheses to the SQL statement.
protected OpenGrouping ( ) : void
Результат void

Parse() публичный Метод

Parses the specified value into separate search terms.
public Parse ( String value ) : String
value String The search text.
Результат String

SqlExpressionParser() публичный Метод

Initializes a new instance of the SqlExpressionParser class.
public SqlExpressionParser ( String propertyName ) : System
propertyName String
Результат System

SqlExpressionParser() публичный Метод

Initializes a new instance of the SqlExpressionParser class.
public SqlExpressionParser ( String propertyName, SqlComparisonType comparisonType ) : System
propertyName String
comparisonType SqlComparisonType
Результат System

SqlExpressionParser() публичный Метод

Initializes a new instance of the SqlExpressionParser class.
public SqlExpressionParser ( String propertyName, SqlComparisonType comparisonType, bool ignoreCase ) : System
propertyName String
comparisonType SqlComparisonType
ignoreCase bool
Результат System

SqlExpressionParser() публичный Метод

Initializes a new instance of the SqlExpressionParser class.
public SqlExpressionParser ( String propertyName, bool ignoreCase ) : System
propertyName String
ignoreCase bool
Результат System

StartsWith() защищенный Метод

Creates a SqlComparisonType.StartsWith expression.
protected StartsWith ( String column, String value, bool ignoreCase ) : String
column String
value String
ignoreCase bool
Результат String

WrapWithSQL() защищенный Метод

Converts the search text into a valid search expression.
protected WrapWithSQL ( String propertyName, String value, bool ignoreCase ) : String
propertyName String
value String
ignoreCase bool
Результат String