Interface IDBCommand
Represents the SQL command.
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public interface IDBCommand
Methods
Execute()
Executes the SQL command and returns the number of rows affected when executing the command.
Declaration
int Execute()
Returns
Type | Description |
---|---|
System.Int32 | Number of rows affected when executing the command. |
Execute(DBExecutor)
Executes the SQL command, using the specified DBExecutor instance, and returns the number of rows affected when executing the command.
Declaration
int Execute(DBExecutor dbExecutor)
Parameters
Type | Name | Description |
---|---|---|
DBExecutor | dbExecutor | The DBExecutor instance used to query the database. |
Returns
Type | Description |
---|---|
System.Int32 | Number of rows affected when executing the operator. |