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

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

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

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

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

CreateSqlTableFunctionDbCommandCreator ( IDbConnection connection, string procedureName ) : SqlTableFunctionDbCommandCreator

Creates the stored procedure database command creator.

WithCommandTimeout ( int commandTimeout ) : SqlTableFunctionDbCommandCreator

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

WithParameters ( IEnumerable parameters ) : SqlTableFunctionDbCommandCreator

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

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

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

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

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 ( ) : SqlTableFunctionDbCommandCreator
Результат SqlTableFunctionDbCommandCreator

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

Creates the stored procedure database command creator.
/// connection /// or /// procedureName ///
public static CreateSqlTableFunctionDbCommandCreator ( IDbConnection connection, string procedureName ) : SqlTableFunctionDbCommandCreator
connection IDbConnection /// The connection to be passed to the command when it is constructed. ///
procedureName string /// The name of the stored procedure for which the commmand is to call. ///
Результат SqlTableFunctionDbCommandCreator

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

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

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

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