C# Class Dibware.StoredProcedureFramework.Helpers.Base.DbCommandCreatorBase

Inheritance: IDbCommandCreator
Afficher le fichier Open project: dibley1973/StoredProcedureFramework

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
AddParametersToCommand ( ) : void
ClearAnyExistingParameters ( ) : void
CreateCommand ( ) : void
LoadCommandParametersIfAnyExist ( ) : void

Method Details

BuildCommand() public méthode

Builds and sets up the command based upon the settings that have been previously passed to this builder.
public BuildCommand ( ) : IDbCommandCreator
Résultat IDbCommandCreator

DbCommandCreatorBase() protected méthode

Initializes a new instance of the DbCommandCreatorBase class.
connection
protected DbCommandCreatorBase ( IDbConnection connection ) : System
connection IDbConnection /// The DbConnection to run the command against. ///
Résultat System

SetCommandTextForCommand() protected méthode

protected SetCommandTextForCommand ( ) : void
Résultat void

SetCommandTimeoutIfExistsForCommand() protected méthode

protected SetCommandTimeoutIfExistsForCommand ( ) : void
Résultat void

SetCommandTypeForCommand() protected méthode

protected SetCommandTypeForCommand ( ) : void
Résultat void

SetTransactionIfExistsForCommand() protected méthode

protected SetTransactionIfExistsForCommand ( ) : void
Résultat void

WithCommandText() protected méthode

protected WithCommandText ( string commandText ) : void
commandText string
Résultat void

WithCommandTimeout() public méthode

public WithCommandTimeout ( int commandTimeout ) : void
commandTimeout int
Résultat void

WithCommandType() protected méthode

protected WithCommandType ( CommandType commandType ) : void
commandType CommandType
Résultat void

WithParameters() public méthode

public WithParameters ( IEnumerable parameters ) : void
parameters IEnumerable
Résultat void

WithTransaction() public méthode

public WithTransaction ( SqlTransaction transaction ) : void
transaction System.Data.SqlClient.SqlTransaction
Résultat void