C# Class DataAccessFramework.Querying.SelectQuery

An object that represents an SQL select, containing references to the tables to join, and the where clauses.
Inheritance: Query
Afficher le fichier Open project: PeteProgrammer/DataAccessFramework Class Usage Examples

Méthodes publiques

Méthode Description
AddSelectField ( FieldReference field ) : void
AddSortExpression ( SortExpression sortExpression ) : void

Adds an expression to the data query describing how to sort the data.

AddTable ( TableBase table ) : void

Adds a table to the query.

AddWhere ( WherePart clause ) : void

Adds a where clause to the query.

All where clases added using this function must be true, i.e. there is an AND operator between them.

FindTable ( string tableName ) : TableBase

Finds the QueryTable instance previously added with a specific name.

SetAlias ( TableBase tableBase ) : void

Private Methods

Méthode Description
GetAlias ( QueryTable table ) : string
Parse ( DataTool dataTool ) : ParseResult
WriteSelectedColumns ( StringBuilder builder ) : void

Method Details

AddSelectField() public méthode

public AddSelectField ( FieldReference field ) : void
field FieldReference
Résultat void

AddSortExpression() public méthode

Adds an expression to the data query describing how to sort the data.
public AddSortExpression ( SortExpression sortExpression ) : void
sortExpression SortExpression
Résultat void

AddTable() public méthode

Adds a table to the query.
public AddTable ( TableBase table ) : void
table TableBase
Résultat void

AddWhere() public méthode

Adds a where clause to the query.
All where clases added using this function must be true, i.e. there is an AND operator between them.
public AddWhere ( WherePart clause ) : void
clause WherePart
Résultat void

FindTable() public méthode

Finds the QueryTable instance previously added with a specific name.
public FindTable ( string tableName ) : TableBase
tableName string
Résultat TableBase

SetAlias() public méthode

public SetAlias ( TableBase tableBase ) : void
tableBase TableBase
Résultat void