Export (0) Print
Expand All

Database.ExecuteNonQuery Method (DbTransaction, String, Object[])

Executes the storedProcedureName using the given parameterValues within a transaction and returns the number of rows affected.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

public virtual int ExecuteNonQuery(
	DbTransaction transaction,
	string storedProcedureName,
	params Object[] parameterValues
)

Parameters

transaction
Type: System.Data.Common.DbTransaction

The IDbTransaction to execute the command within.

storedProcedureName
Type: System.String

The name of the stored procedure to execute.

parameterValues
Type: System.Object []

An array of parameters to pass to the stored procedure. The parameter values must be in call order as they appear in the stored procedure.

Return Value

The number of rows affected.

Show:
© 2014 Microsoft