C# Класс MicroLite.Driver.DbDriver

The base class for implementations of IDbDriver.
Наследование: IDbDriver
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
BuildCommand ( IDbCommand command, SqlQuery sqlQuery ) : void

Описание методов

BuildParameter() защищенный Метод

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.
Результат void

Combine() публичный Метод

Combines the specified SQL queries into a single SqlQuery.
public Combine ( IEnumerable sqlQueries ) : SqlQuery
sqlQueries IEnumerable The SQL queries to be combined.
Результат SqlQuery

Combine() публичный Метод

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.
Результат SqlQuery

CreateConnection() публичный Метод

Creates an IDbConnection to the database.
public CreateConnection ( ) : IDbConnection
Результат IDbConnection

DbDriver() защищенный Метод

Initialises a new instance of the DbDriver class.
protected DbDriver ( SqlCharacters sqlCharacters ) : System
sqlCharacters SqlCharacters The SQL characters.
Результат System

GetCommandText() защищенный Метод

Gets the command text.
protected GetCommandText ( string commandText ) : string
commandText string The command text.
Результат string

GetCommandType() защищенный Метод

Gets the type of the command.
protected GetCommandType ( string commandText ) : CommandType
commandText string The command text.
Результат CommandType

IsStoredProcedureCall() защищенный Метод

Determines whether the command text is a stored procedure call.
protected IsStoredProcedureCall ( string commandText ) : bool
commandText string The command text to inspect.
Результат bool