Executes a database stored procedure.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
int Execute(
	ProcedureQuery query
)
Visual Basic (Declaration)
Function Execute ( _
	query As ProcedureQuery _
) As Integer

Parameters

query
Type: Mindscape.LightSpeed.Querying..::.ProcedureQuery
The database stored procedure.

Return Value

The number of rows affected by the query.

Examples

CopyC#
ProcedureQuery query = new ProcedureQuery("InsertCopyOfProduct",
  new ProcedureParameter("productIdToCopy", 201));
int rowsAffected = _unitOfWork.Execute(query);

See Also