Udostępnij za pośrednictwem


SqlCommandFactory Members

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.

Fields

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

See Also

SqlCommandFactory Class

Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace