Database.Execute Method (String, Object[])

Creates and executes an IDbCommand using the provided commandText as a composite format string (as used on Format(String, Object[])), where the format items are replaced with appropiate parameter names, and the objects in the parameters array are added to the command’s Parameters collection.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public int Execute(
	string commandText,
	params Object[] parameters
)

Parameters

commandText

Type: System.String
The command text.

parameters

Type: System.Object[]
The parameters to apply to the command text.

Return Value

Type: Int32
The number of affected records.

See Also

Reference

Database Class
DbExtensions Namespace

© Max Toro Q.