C# Класс Dibware.StoredProcedureFramework.Helpers.Base.DbCommandCreatorBase

Наследование: IDbCommandCreator
Показать файл Открыть проект

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

Метод Описание
BuildCommand ( ) : IDbCommandCreator

Builds and sets up the command based upon the settings that have been previously passed to this builder.

WithCommandTimeout ( int commandTimeout ) : void
WithParameters ( IEnumerable parameters ) : void
WithTransaction ( SqlTransaction transaction ) : void

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

Метод Описание
DbCommandCreatorBase ( IDbConnection connection ) : System

Initializes a new instance of the DbCommandCreatorBase class.

SetCommandTextForCommand ( ) : void
SetCommandTimeoutIfExistsForCommand ( ) : void
SetCommandTypeForCommand ( ) : void
SetTransactionIfExistsForCommand ( ) : void
WithCommandText ( string commandText ) : void
WithCommandType ( CommandType commandType ) : void

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

Метод Описание
AddParametersToCommand ( ) : void
ClearAnyExistingParameters ( ) : void
CreateCommand ( ) : void
LoadCommandParametersIfAnyExist ( ) : void

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

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

Builds and sets up the command based upon the settings that have been previously passed to this builder.
public BuildCommand ( ) : IDbCommandCreator
Результат IDbCommandCreator

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

Initializes a new instance of the DbCommandCreatorBase class.
connection
protected DbCommandCreatorBase ( IDbConnection connection ) : System
connection IDbConnection /// The DbConnection to run the command against. ///
Результат System

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

protected SetCommandTextForCommand ( ) : void
Результат void

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

protected SetCommandTimeoutIfExistsForCommand ( ) : void
Результат void

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

protected SetCommandTypeForCommand ( ) : void
Результат void

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

protected SetTransactionIfExistsForCommand ( ) : void
Результат void

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

protected WithCommandText ( string commandText ) : void
commandText string
Результат void

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

public WithCommandTimeout ( int commandTimeout ) : void
commandTimeout int
Результат void

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

protected WithCommandType ( CommandType commandType ) : void
commandType CommandType
Результат void

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

public WithParameters ( IEnumerable parameters ) : void
parameters IEnumerable
Результат void

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

public WithTransaction ( SqlTransaction transaction ) : void
transaction System.Data.SqlClient.SqlTransaction
Результат void