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

Inheritance: AbstractExpression
Datei anzeigen Open project: azavea/net-dao

Public Properties

Property Type Description
Expression string
Parameters IEnumerable

Public Methods

Method 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 method

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.
return System

HandWrittenExpression() public method

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.
return System

Invert() public method

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

ToString() public method

public ToString ( ) : string
return 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
return string

Parameters public_oe property

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