C# Class IQMap.QueryBuilder

Where Clause factory class /// Build a where clause from a string /// /// Return a clause requiring field to equal value /// /// Return a compound OR clause from two or more clauses /// Where Clause factory class /// Build a where clause from a string /// /// Return a clause requiring field to equal value /// /// Return a compound OR clause from two or more clauses ///
显示文件 Open project: jamietre/IQMap

Private Properties

Property Type Description
QueryBuilder System

Public Methods

Method Description
Create ( ) : ISqlQueryMaker
Create ( QueryType type ) : ISqlQueryMaker
OrderBy ( string clause ) : IOrderByClause
OrderBy ( string field, SortOrder order ) : IOrderByItem
Where ( string field, object value, ComparisonType compare ) : IWhereItem
WhereAny ( ) : IWhereClause
WhereEquals ( string field, object value ) : IWhereItem

Build a where clause for a field matching a value

WhereParse ( string clause ) : IWhere

Build a where clause from a string

Private Methods

Method Description
QueryBuilder ( ) : System

Method Details

Create() public static method

public static Create ( ) : ISqlQueryMaker
return ISqlQueryMaker

Create() public static method

public static Create ( QueryType type ) : ISqlQueryMaker
type QueryType
return ISqlQueryMaker

OrderBy() public static method

public static OrderBy ( string clause ) : IOrderByClause
clause string
return IOrderByClause

OrderBy() public static method

public static OrderBy ( string field, SortOrder order ) : IOrderByItem
field string
order SortOrder
return IOrderByItem

Where() public static method

public static Where ( string field, object value, ComparisonType compare ) : IWhereItem
field string
value object
compare ComparisonType
return IWhereItem

WhereAny() public static method

public static WhereAny ( ) : IWhereClause
return IWhereClause

WhereEquals() public static method

Build a where clause for a field matching a value
public static WhereEquals ( string field, object value ) : IWhereItem
field string
value object
return IWhereItem

WhereParse() public static method

Build a where clause from a string
public static WhereParse ( string clause ) : IWhere
clause string
return IWhere