SqlCommandFactory Methods

Include Protected Members
Include Inherited Members

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 time-out.
Public methodStatic member CreateCommand(IDbConnection, String)
Creates a generic command of type Stored Procedure and assigns the specified command text and default command time-out to it.
Public methodStatic member CreateGetContextInfoCommand
Creates a SQL command that is intended to return the connection's context ID, which is useful for tracing purposes.

See Also

SqlCommandFactory Class

Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace