PrepCommand

Method PrepCommand Method

Class :CA.Blocks.DataAccess.DataAccessCore

Namespace :CA.Blocks.DataAccess

Assembly : CA.Blocks.DataAccess.dll

The Prep Command is abstract method that must be implemented by the providers. The method will create the the provider specific connection setting the connection string, Opening the connection, set any context on the connection the assign the connection to the command for execution, it will also and indicate to the blocks if the connection should be closed on complete execution. In most cases it is best to close the connection, at the provider will managed the connection pool.

Abstract MethodPrepCommand(System.Data.IDbCommand)

The Prep Command is abstract method that must be implemented by the providers. The method will create the the provider specific connection setting the connection string, Opening the connection, set any context on the connection the assign the connection to the command for execution, it will also and indicate to the blocks if the connection should be closed on complete execution. In most cases it is best to close the connection, at the provider will managed the connection pool.

Parameters
NameTypeDescription
cmdSystem.Data.IDbCommand
Returns

System.Boolean

a bool value to indicated if the blocks should close the connection when finished.