C# Class MicroLite.Driver.DbDriver

The base class for implementations of IDbDriver.
Inheritance: IDbDriver
Afficher le fichier Open project: TrevorPilley/MicroLite

Méthodes publiques

Méthode Description
Combine ( IEnumerable sqlQueries ) : SqlQuery

Combines the specified SQL queries into a single SqlQuery.

Combine ( SqlQuery sqlQuery1, SqlQuery sqlQuery2 ) : SqlQuery

Combines the specified SQL queries into a single SqlQuery.

CreateConnection ( ) : IDbConnection

Creates an IDbConnection to the database.

Méthodes protégées

Méthode Description
BuildParameter ( IDbDataParameter parameter, string parameterName, SqlArgument sqlArgument ) : void

Builds the the IDbDataParameter using the specified name and value.

DbDriver ( SqlCharacters sqlCharacters ) : System

Initialises a new instance of the DbDriver class.

GetCommandText ( string commandText ) : string

Gets the command text.

GetCommandType ( string commandText ) : CommandType

Gets the type of the command.

IsStoredProcedureCall ( string commandText ) : bool

Determines whether the command text is a stored procedure call.

Private Methods

Méthode Description
BuildCommand ( IDbCommand command, SqlQuery sqlQuery ) : void

Method Details

BuildParameter() protected méthode

Builds the the IDbDataParameter using the specified name and value.
protected BuildParameter ( IDbDataParameter parameter, string parameterName, SqlArgument sqlArgument ) : void
parameter IDbDataParameter The parameter to build.
parameterName string The name for the parameter.
sqlArgument SqlArgument The for the parameter.
Résultat void

Combine() public méthode

Combines the specified SQL queries into a single SqlQuery.
public Combine ( IEnumerable sqlQueries ) : SqlQuery
sqlQueries IEnumerable The SQL queries to be combined.
Résultat SqlQuery

Combine() public méthode

Combines the specified SQL queries into a single SqlQuery.
public Combine ( SqlQuery sqlQuery1, SqlQuery sqlQuery2 ) : SqlQuery
sqlQuery1 SqlQuery The first SQL query to be combined.
sqlQuery2 SqlQuery The second SQL query to be combined.
Résultat SqlQuery

CreateConnection() public méthode

Creates an IDbConnection to the database.
public CreateConnection ( ) : IDbConnection
Résultat IDbConnection

DbDriver() protected méthode

Initialises a new instance of the DbDriver class.
protected DbDriver ( SqlCharacters sqlCharacters ) : System
sqlCharacters SqlCharacters The SQL characters.
Résultat System

GetCommandText() protected méthode

Gets the command text.
protected GetCommandText ( string commandText ) : string
commandText string The command text.
Résultat string

GetCommandType() protected méthode

Gets the type of the command.
protected GetCommandType ( string commandText ) : CommandType
commandText string The command text.
Résultat CommandType

IsStoredProcedureCall() protected méthode

Determines whether the command text is a stored procedure call.
protected IsStoredProcedureCall ( string commandText ) : bool
commandText string The command text to inspect.
Résultat bool