C# 클래스 Dibware.StoredProcedureFramework.Helpers.SqlScalarFunctionDbCommandCreator

Responsible for creating Scalar function commands
상속: Dibware.StoredProcedureFramework.Helpers.Base.SqlFunctionDbCommandCreatorBase
파일 보기 프로젝트 열기: dibley1973/StoredProcedureFramework 1 사용 예제들

공개 메소드들

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