Table of Contents

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

transaction IDbTransaction

The transaction to create a command from.

procedureName string

The command text or stored procedure name to use.

secondsTimeout int

The 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

transaction DbTransaction

The transaction to create a command from.

procedureName string

The command text or stored procedure name to use.

secondsTimeout int

The number of seconds to wait before the command times out.

Returns

DbCommand

The created SqlCommand.