C# Class MicroLite.Characters.SqlCharacters

Inheritance: System.MarshalByRefObject
Mostra file Open project: TrevorPilley/MicroLite Class Usage Examples

Public Methods

Method Description
EscapeSql ( string sql ) : string

Escapes the specified SQL using the left and right delimiters.

GetParameterName ( int position ) : string

Gets the name of the parameter for the specified position.

IsEscaped ( string sql ) : bool

Determines whether the specified SQL is escaped.

Protected Methods

Method Description
SqlCharacters ( ) : System

Initialises a new instance of the SqlCharacters class.

Method Details

EscapeSql() public method

Escapes the specified SQL using the left and right delimiters.
Thrown if sql is null.
public EscapeSql ( string sql ) : string
sql string The SQL to be escaped.
return string

GetParameterName() public method

Gets the name of the parameter for the specified position.
public GetParameterName ( int position ) : string
position int The parameter position.
return string

IsEscaped() public method

Determines whether the specified SQL is escaped.
public IsEscaped ( string sql ) : bool
sql string The SQL to check.
return bool

SqlCharacters() protected method

Initialises a new instance of the SqlCharacters class.
protected SqlCharacters ( ) : System
return System