C# Class MicroLite.Builder.SqlBuilderBase

Inheritance: IToSqlQuery
Show file Open project: TrevorPilley/MicroLite

Public Methods

Method Description
ToSqlQuery ( ) : SqlQuery

Creates a SqlQuery from the values specified.

This method is called to return an SqlQuery once query has been defined.

Protected Methods

Method Description
AddBetween ( object lower, object upper, bool negate ) : void
AddIn ( SqlQuery subQuery, bool negate ) : void
AddIn ( object args, bool negate ) : void
AddLike ( object comparisonValue, bool negate ) : void
AddWithComparisonOperator ( object comparisonValue, string comparisonOperator ) : void
AppendTableName ( IObjectInfo objectInfo ) : void

Appends the table name to the inner sql.

AppendTableName ( string table ) : void

Appends the table name to the inner sql.

SqlBuilderBase ( SqlCharacters sqlCharacters ) : System

Initialises a new instance of the SqlBuilderBase class.

Method Details

AddBetween() protected method

protected AddBetween ( object lower, object upper, bool negate ) : void
lower object
upper object
negate bool
return void

AddIn() protected method

protected AddIn ( SqlQuery subQuery, bool negate ) : void
subQuery SqlQuery
negate bool
return void

AddIn() protected method

protected AddIn ( object args, bool negate ) : void
args object
negate bool
return void

AddLike() protected method

protected AddLike ( object comparisonValue, bool negate ) : void
comparisonValue object
negate bool
return void

AddWithComparisonOperator() protected method

protected AddWithComparisonOperator ( object comparisonValue, string comparisonOperator ) : void
comparisonValue object
comparisonOperator string
return void

AppendTableName() protected method

Appends the table name to the inner sql.
protected AppendTableName ( IObjectInfo objectInfo ) : void
objectInfo IObjectInfo The object information.
return void

AppendTableName() protected method

Appends the table name to the inner sql.
protected AppendTableName ( string table ) : void
table string The name of the table.
return void

SqlBuilderBase() protected method

Initialises a new instance of the SqlBuilderBase class.
protected SqlBuilderBase ( SqlCharacters sqlCharacters ) : System
sqlCharacters MicroLite.Characters.SqlCharacters The SQL characters for the builder.
return System

ToSqlQuery() public method

Creates a SqlQuery from the values specified.
This method is called to return an SqlQuery once query has been defined.
public ToSqlQuery ( ) : SqlQuery
return SqlQuery