C# 클래스 MicroLite.Driver.DbDriver

The base class for implementations of IDbDriver.
상속: IDbDriver
파일 보기 프로젝트 열기: TrevorPilley/MicroLite

공개 메소드들

메소드 설명
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