C# Class IQMap.SqlQueryBuilder.Impl.SqlQueryMaker

Inheritance: ISqlQueryMaker
Afficher le fichier Open project: jamietre/IQMap Class Usage Examples

Protected Properties

Свойство Type Description
_From string
_IsDirty bool
_PrimaryKey string
_Select string
_TableName string
_orderByClause IOrderByClause
_sqlFieldMap Lazy
_updateData SqlValue>>.Lazy
_whereClause IWhereClause
groupBy string
having string
top int

Private Properties

Свойство Type Description
ISqlQuery ISqlQuery

Méthodes publiques

Méthode Description
AddFieldMap ( string>.IEnumerable map ) : void

Add a range of key/value pairs to map field names to SQL server column names

AddFieldMap ( string fieldName, string value ) : void

Map a field name to an alternate representation to be passed to the SQL Server

AddParameter ( IDataParameter parameter ) : void
AddParameter ( IEnumerable parameter ) : void
AddUpdateData ( string fieldName, object value ) : ISqlQuery
Clean ( ) : void

Marks this object as unchanged (IsDirty=false)

Clear ( ) : void

Clears all criteria. This does not clear the field map.

ClearFieldMap ( ) : void

Clear all current aliases in the field map

Clone ( ) : ISqlQueryMaker
Clone ( QueryType type ) : ISqlQueryMaker
Equals ( object obj ) : bool
ExpectType ( QueryType type ) : void
GetFieldMap ( string name ) : string

Returns the mapped value for a field alias

GetHashCode ( ) : int
GetNewParameterName ( string basedOn = "" ) : string
GetQuery ( ) : string
GetQuery ( SqlClause clause ) : string

Return the SQL for this query

SqlAuditString ( ) : string
SqlQueryMaker ( ) : System
SqlQueryMaker ( QueryType queryType ) : System
ToString ( ) : string
Touch ( ) : void

Mark the object as dirty

Méthodes protégées

Méthode Description
CloneImpl ( ) : SqlQueryMaker

Returns a deep copy of this object

Initialize ( QueryType queryType ) : void
RequireClauses ( SqlClause clause ) : void

Private Methods

Méthode Description
ISqlQuery ( ) : ISqlQuery

Method Details

AddFieldMap() public méthode

Add a range of key/value pairs to map field names to SQL server column names
public AddFieldMap ( string>.IEnumerable map ) : void
map string>.IEnumerable
Résultat void

AddFieldMap() public méthode

Map a field name to an alternate representation to be passed to the SQL Server
public AddFieldMap ( string fieldName, string value ) : void
fieldName string
value string
Résultat void

AddParameter() public méthode

public AddParameter ( IDataParameter parameter ) : void
parameter IDataParameter
Résultat void

AddParameter() public méthode

public AddParameter ( IEnumerable parameter ) : void
parameter IEnumerable
Résultat void

AddUpdateData() public méthode

public AddUpdateData ( string fieldName, object value ) : ISqlQuery
fieldName string
value object
Résultat ISqlQuery

Clean() public méthode

Marks this object as unchanged (IsDirty=false)
public Clean ( ) : void
Résultat void

Clear() public méthode

Clears all criteria. This does not clear the field map.
public Clear ( ) : void
Résultat void

ClearFieldMap() public méthode

Clear all current aliases in the field map
public ClearFieldMap ( ) : void
Résultat void

Clone() public méthode

public Clone ( ) : ISqlQueryMaker
Résultat ISqlQueryMaker

Clone() public méthode

public Clone ( QueryType type ) : ISqlQueryMaker
type QueryType
Résultat ISqlQueryMaker

CloneImpl() protected méthode

Returns a deep copy of this object
protected CloneImpl ( ) : SqlQueryMaker
Résultat SqlQueryMaker

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

ExpectType() public méthode

public ExpectType ( QueryType type ) : void
type QueryType
Résultat void

GetFieldMap() public méthode

Returns the mapped value for a field alias
public GetFieldMap ( string name ) : string
name string
Résultat string

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetNewParameterName() public méthode

public GetNewParameterName ( string basedOn = "" ) : string
basedOn string
Résultat string

GetQuery() public méthode

public GetQuery ( ) : string
Résultat string

GetQuery() public méthode

Return the SQL for this query
public GetQuery ( SqlClause clause ) : string
clause SqlClause
Résultat string

Initialize() protected méthode

protected Initialize ( QueryType queryType ) : void
queryType QueryType
Résultat void

RequireClauses() protected méthode

protected RequireClauses ( SqlClause clause ) : void
clause SqlClause
Résultat void

SqlAuditString() public méthode

public SqlAuditString ( ) : string
Résultat string

SqlQueryMaker() public méthode

public SqlQueryMaker ( ) : System
Résultat System

SqlQueryMaker() public méthode

public SqlQueryMaker ( QueryType queryType ) : System
queryType QueryType
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

Touch() public méthode

Mark the object as dirty
public Touch ( ) : void
Résultat void

Property Details

_From protected_oe property

protected string _From
Résultat string

_IsDirty protected_oe property

protected bool _IsDirty
Résultat bool

_PrimaryKey protected_oe property

protected string _PrimaryKey
Résultat string

_Select protected_oe property

protected string _Select
Résultat string

_TableName protected_oe property

protected string _TableName
Résultat string

_orderByClause protected_oe property

protected IOrderByClause _orderByClause
Résultat IOrderByClause

_sqlFieldMap protected_oe property

protected Lazy _sqlFieldMap
Résultat Lazy

_updateData protected_oe property

protected Lazy> _updateData
Résultat SqlValue>>.Lazy

_whereClause protected_oe property

protected IWhereClause _whereClause
Résultat IWhereClause

groupBy protected_oe property

protected string groupBy
Résultat string

having protected_oe property

protected string having
Résultat string

top protected_oe property

protected int top
Résultat int