C# Class Azavea.Open.DAO.Criteria.HandWrittenExpression

Inheritance: AbstractExpression
Afficher le fichier Open project: azavea/net-dao

Méthodes publiques

Свойство Type Description
Expression string
Parameters IEnumerable

Méthodes publiques

Méthode Description
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

Method Details

HandWrittenExpression() public méthode

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.
Résultat System

HandWrittenExpression() public méthode

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.
Résultat System

Invert() public méthode

Since handwritten expressions are completely custom, there is no automatic way to invert them. Therefore this is not supported.
public Invert ( ) : IExpression
Résultat IExpression

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Expression public_oe property

The expression text. Can be almost anything, as long as it means something to the underlying Dao layer.
public string Expression
Résultat string

Parameters public_oe property

Parameters for the expression, if any. If none, may be null or empty.
public IEnumerable Parameters
Résultat IEnumerable