C# Class IQMap.Impl.Support.ParameterParser

Handles processing of a query + parameters into something that can be run. Extracts special parameter types (CommandBehavior, Buffered, Transaction); turns a query that's a field + a single parameter into a select x=y query; turns a query that's a single field + a numeric parameter into a primary key selector
Afficher le fichier Open project: jamietre/IQMap Class Usage Examples

Protected Properties

Свойство Type Description
WhereClause IWhere
_Parameters List

Méthodes publiques

Méthode Description
GetQuery ( ) : string
GetQuery ( QueryType type ) : string

Return the query string. The "type" parameter ensures that you know what you are doing; an error will result if you request the wrong type.

GetWhereClause ( ) : IWhere
ParameterParser ( string query ) : System

Méthodes protégées

Méthode Description
CleanParmName ( string text ) : string
GetProperties ( object obj ) : object>>.IEnumerable

Enumerate props/values for an object

IsParameterType ( Object obj ) : bool

Check the parameter to see if it's legitimate paramter values

ParseQueryType ( ) : void
ProcessParameters ( IEnumerable parameters ) : void
UnwrapParameters ( IEnumerable parameters ) : IEnumerable

Expands any arrays in a list

Private Methods

Méthode Description
CreateParameter ( string name, object value ) : IDataParameter

Method Details

CleanParmName() protected méthode

protected CleanParmName ( string text ) : string
text string
Résultat string

GetProperties() protected méthode

Enumerate props/values for an object
protected GetProperties ( object obj ) : object>>.IEnumerable
obj object
Résultat object>>.IEnumerable

GetQuery() public méthode

public GetQuery ( ) : string
Résultat string

GetQuery() public méthode

Return the query string. The "type" parameter ensures that you know what you are doing; an error will result if you request the wrong type.
public GetQuery ( QueryType type ) : string
type QueryType
Résultat string

GetWhereClause() public méthode

public GetWhereClause ( ) : IWhere
Résultat IWhere

IsParameterType() protected méthode

Check the parameter to see if it's legitimate paramter values
protected IsParameterType ( Object obj ) : bool
obj Object
Résultat bool

ParameterParser() public méthode

public ParameterParser ( string query ) : System
query string
Résultat System

ParseQueryType() protected méthode

protected ParseQueryType ( ) : void
Résultat void

ProcessParameters() protected méthode

protected ProcessParameters ( IEnumerable parameters ) : void
parameters IEnumerable
Résultat void

UnwrapParameters() protected méthode

Expands any arrays in a list
protected UnwrapParameters ( IEnumerable parameters ) : IEnumerable
parameters IEnumerable
Résultat IEnumerable

Property Details

WhereClause protected_oe property

protected IWhere WhereClause
Résultat IWhere

_Parameters protected_oe property

protected List _Parameters
Résultat List