C# Класс Dibware.StoredProcedureFramework.Helpers.SqlScalarFunctionDbCommandCreator

Responsible for creating Scalar function commands
Наследование: Dibware.StoredProcedureFramework.Helpers.Base.SqlFunctionDbCommandCreatorBase
Показать файл Открыть проект Примеры использования класса

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

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

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

Should call into base implementation before executing any addtional code

CreateSqlScalarFunctionDbCommandCreator ( IDbConnection connection, string functionName ) : SqlScalarFunctionDbCommandCreator

Creates the sql function database command creator.

WithCommandTimeout ( int commandTimeout ) : SqlScalarFunctionDbCommandCreator

Adds a command timeout to the builder which will be passed to the command when it is construted.

WithParameters ( IEnumerable parameters ) : SqlScalarFunctionDbCommandCreator

Adds the specified parameters to the builder, and these will be added to the command when it is built.

WithTransaction ( SqlTransaction transaction ) : SqlScalarFunctionDbCommandCreator

Adds the specified transaction to the builder, and these will be added to the command when it is built.

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

Метод Описание
SqlScalarFunctionDbCommandCreator ( IDbConnection connection ) : System
WithCommandText ( string commandText ) : SqlScalarFunctionDbCommandCreator
WithCommandType ( CommandType commandType ) : SqlScalarFunctionDbCommandCreator

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

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

Builds and sets up the command based upon the settings that have been previously passed to this builder.
Should call into base implementation before executing any addtional code
public BuildCommand ( ) : SqlScalarFunctionDbCommandCreator
Результат SqlScalarFunctionDbCommandCreator

CreateSqlScalarFunctionDbCommandCreator() публичный статический Метод

Creates the sql function database command creator.
/// connection /// or /// functionName ///
public static CreateSqlScalarFunctionDbCommandCreator ( IDbConnection connection, string functionName ) : SqlScalarFunctionDbCommandCreator
connection IDbConnection /// The connection to be passed to the command when it is constructed. ///
functionName string /// The name of the sql function for which the commmand is to call. ///
Результат SqlScalarFunctionDbCommandCreator

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

Adds a command timeout to the builder which will be passed to the command when it is construted.
public WithCommandTimeout ( int commandTimeout ) : SqlScalarFunctionDbCommandCreator
commandTimeout int The value of the command timeout.
Результат SqlScalarFunctionDbCommandCreator

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

Adds the specified parameters to the builder, and these will be added to the command when it is built.
public WithParameters ( IEnumerable parameters ) : SqlScalarFunctionDbCommandCreator
parameters IEnumerable The parameters to add to the command.
Результат SqlScalarFunctionDbCommandCreator

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

Adds the specified transaction to the builder, and these will be added to the command when it is built.
public WithTransaction ( SqlTransaction transaction ) : SqlScalarFunctionDbCommandCreator
transaction System.Data.SqlClient.SqlTransaction The transaction to add to teh command.
Результат SqlScalarFunctionDbCommandCreator