C# Class DotNetNuke.Extensions.Data.Order

Exibir arquivo Open project: JonHaywood/DotNetNuke.Extensions

Protected Properties

Property Type Description
OrderSql StringBuilder

Public Methods

Method Description
Asc ( string propertyName ) : Order
Desc ( string propertyName ) : Order
GetExpressionString ( ) : string

Returns the order by clause without the leading 'Order By' command. To access the statement with a order by command, use ToString().

ToString ( ) : string

Returns the query's expression as a SQL string, prefixed with the 'Order By' command. For example, OrderBy Column1.

Protected Methods

Method Description
AddCriteria ( string propertyName, bool isAscending ) : void

Method Details

AddCriteria() protected method

protected AddCriteria ( string propertyName, bool isAscending ) : void
propertyName string
isAscending bool
return void

Asc() public method

public Asc ( string propertyName ) : Order
propertyName string
return Order

Desc() public method

public Desc ( string propertyName ) : Order
propertyName string
return Order

GetExpressionString() public method

Returns the order by clause without the leading 'Order By' command. To access the statement with a order by command, use ToString().
public GetExpressionString ( ) : string
return string

ToString() public method

Returns the query's expression as a SQL string, prefixed with the 'Order By' command. For example, OrderBy Column1.
public ToString ( ) : string
return string

Property Details

OrderSql protected_oe property

protected StringBuilder OrderSql
return StringBuilder