Method CreateStoredProcedureCommand
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
CreateStoredProcedureCommand(IDbTransaction, string, int)
Shortcut for creating a stored procedure IDbCommand from any IDbTransaction.
public static IDbCommand CreateStoredProcedureCommand(this IDbTransaction transaction, string procedureName, int secondsTimeout = 60)
Parameters
transactionIDbTransactionThe transaction to create a command from.
procedureNamestringThe command text or stored procedure name to use.
secondsTimeoutintThe number of seconds to wait before the command times out.
Returns
- IDbCommand
The created SqlCommand.
CreateStoredProcedureCommand(DbTransaction, string, int)
Shortcut for creating a stored procedure DbCommand from any DbTransaction.
public static DbCommand CreateStoredProcedureCommand(this DbTransaction transaction, string procedureName, int secondsTimeout = 60)
Parameters
transactionDbTransactionThe transaction to create a command from.
procedureNamestringThe command text or stored procedure name to use.
secondsTimeoutintThe number of seconds to wait before the command times out.
Returns
- DbCommand
The created SqlCommand.