C# Класс Azavea.Open.DAO.Criteria.HandWrittenExpression

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

Открытые свойства

Свойство Тип Описание
Expression string
Parameters IEnumerable

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

Метод Описание
HandWrittenExpression ( string expression ) : System

Represents a hand-written custom expression. May be a chunk of SQL, or may be something else relevant to the underlying data access layer. This is both a very powerful and very dangerous expression; it allows you to construct complicated logic, but you can easily pass invalid input (that doesn't parse), sloppy input (hard coded table / column names), or even evil input (sql injection). MAKE SURE to sanitize any user input that makes its way into this expression!

HandWrittenExpression ( string expression, IEnumerable parameters ) : System

Represents a hand-written custom expression. May be a chunk of SQL, or may be something else relevant to the underlying data access layer. This is both a very powerful and very dangerous expression; it allows you to construct complicated logic, but you can easily pass invalid input (that doesn't parse), sloppy input (hard coded table / column names), or even evil input (sql injection). MAKE SURE to sanitize any user input that makes its way into this expression!

Invert ( ) : IExpression

Since handwritten expressions are completely custom, there is no automatic way to invert them. Therefore this is not supported.

ToString ( ) : string

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

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

Represents a hand-written custom expression. May be a chunk of SQL, or may be something else relevant to the underlying data access layer. This is both a very powerful and very dangerous expression; it allows you to construct complicated logic, but you can easily pass invalid input (that doesn't parse), sloppy input (hard coded table / column names), or even evil input (sql injection). MAKE SURE to sanitize any user input that makes its way into this expression!
public HandWrittenExpression ( string expression ) : System
expression string The expression text. Can be almost anything, as long as it means /// something to the underlying Dao layer.
Результат System

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

Represents a hand-written custom expression. May be a chunk of SQL, or may be something else relevant to the underlying data access layer. This is both a very powerful and very dangerous expression; it allows you to construct complicated logic, but you can easily pass invalid input (that doesn't parse), sloppy input (hard coded table / column names), or even evil input (sql injection). MAKE SURE to sanitize any user input that makes its way into this expression!
public HandWrittenExpression ( string expression, IEnumerable parameters ) : System
expression string The expression text. Can be almost anything, as long as it means /// something to the underlying Dao layer.
parameters IEnumerable Parameters for the expression, if any. /// If none, may be null or empty.
Результат System

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

Since handwritten expressions are completely custom, there is no automatic way to invert them. Therefore this is not supported.
public Invert ( ) : IExpression
Результат IExpression

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

public ToString ( ) : string
Результат string

Описание свойств

Expression публичное свойство

The expression text. Can be almost anything, as long as it means something to the underlying Dao layer.
public string Expression
Результат string

Parameters публичное свойство

Parameters for the expression, if any. If none, may be null or empty.
public IEnumerable Parameters
Результат IEnumerable