C# Class MicroLite.Characters.SqlCharacters

Inheritance: System.MarshalByRefObject
Afficher le fichier Open project: TrevorPilley/MicroLite Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
SqlCharacters ( ) : System

Initialises a new instance of the SqlCharacters class.

Method Details

EscapeSql() public méthode

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.
Résultat string

GetParameterName() public méthode

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

IsEscaped() public méthode

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

SqlCharacters() protected méthode

Initialises a new instance of the SqlCharacters class.
protected SqlCharacters ( ) : System
Résultat System