Partager via


SqlCommandFactory Members

Include Protected Members
Include Inherited Members

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information about Transient Fault Handling, see Transient Fault Handling.

The SqlCommandFactory type exposes the following members.

Methods

  Name Description
Public methodStatic member CreateCommand(IDbConnection)
Creates a generic command of type Stored Procedure and assigns the default command timeout.
Public methodStatic member CreateCommand(IDbConnection, String)
Creates a generic command of type Stored Procedure and assigns the specified command text and default command timeout.
Public methodStatic member CreateGetContextInfoCommand
Creates a SQL command that is intended to return the connection's context ID which is useful for tracing purposes.

Fields

  Name Description
Public fieldStatic member DefaultCommandTimeoutSeconds
Returns the default timeout that will be applied to all SQL commands constructed by this factory class.

See Also

SqlCommandFactory Class

Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.SqlAzure Namespace