C# Class Hd.QueryExtensions.SelectQuery

Inheritance: ICloneable
Mostrar archivo Open project: TargetProcess/Tp.HelpDesk Class Usage Examples

Public Methods

Method Description
AddCompare ( Enum column, Parameter parameter, CompareOperator compareOperator ) : void
AddCompare ( Enum column, SqlExpression expression, CompareOperator compareOperator ) : void
AddCompare ( string column, Parameter parameter, CompareOperator compareOperator ) : void
AddCompare ( string column, SqlExpression expression, CompareOperator compareOperator ) : void
AddOrderBy ( Enum manyToOneField, Enum column, OrderByDirection direction ) : void
AddOrderBy ( Enum column, OrderByDirection direction ) : void
AddOrderBy ( string column, OrderByDirection direction ) : void
AddParameter ( object value ) : void
Clone ( ) : SelectQuery

Clones the SelectQuery

CreateCompare ( Enum column, SqlExpression expression, CompareOperator compareOperator ) : WhereTerm
SelectQuery ( ) : System

Creates a new SelectQuery

SelectQuery ( Enum entity ) : System

Creates a new SelectQuery

SelectQuery ( Type t ) : System
Validate ( ) : void

Validates the SelectQuery

Sql.Net makes its best to validate a query before it is rendered or executed. Still, some errors and inconsistancies can only be found on later stages.

Private Methods

Method Description
ICloneable ( ) : object

Method Details

AddCompare() public method

public AddCompare ( Enum column, Parameter parameter, CompareOperator compareOperator ) : void
column System.Enum
parameter Parameter
compareOperator CompareOperator
return void

AddCompare() public method

public AddCompare ( Enum column, SqlExpression expression, CompareOperator compareOperator ) : void
column System.Enum
expression SqlExpression
compareOperator CompareOperator
return void

AddCompare() public method

public AddCompare ( string column, Parameter parameter, CompareOperator compareOperator ) : void
column string
parameter Parameter
compareOperator CompareOperator
return void

AddCompare() public method

public AddCompare ( string column, SqlExpression expression, CompareOperator compareOperator ) : void
column string
expression SqlExpression
compareOperator CompareOperator
return void

AddOrderBy() public method

public AddOrderBy ( Enum manyToOneField, Enum column, OrderByDirection direction ) : void
manyToOneField System.Enum
column System.Enum
direction OrderByDirection
return void

AddOrderBy() public method

public AddOrderBy ( Enum column, OrderByDirection direction ) : void
column System.Enum
direction OrderByDirection
return void

AddOrderBy() public method

public AddOrderBy ( string column, OrderByDirection direction ) : void
column string
direction OrderByDirection
return void

AddParameter() public method

public AddParameter ( object value ) : void
value object
return void

Clone() public method

Clones the SelectQuery
public Clone ( ) : SelectQuery
return SelectQuery

CreateCompare() public method

public CreateCompare ( Enum column, SqlExpression expression, CompareOperator compareOperator ) : WhereTerm
column System.Enum
expression SqlExpression
compareOperator CompareOperator
return WhereTerm

SelectQuery() public method

Creates a new SelectQuery
public SelectQuery ( ) : System
return System

SelectQuery() public method

Creates a new SelectQuery
public SelectQuery ( Enum entity ) : System
entity System.Enum
return System

SelectQuery() public method

public SelectQuery ( Type t ) : System
t System.Type
return System

Validate() public method

Validates the SelectQuery
Sql.Net makes its best to validate a query before it is rendered or executed. Still, some errors and inconsistancies can only be found on later stages.
public Validate ( ) : void
return void