Click or drag to resize
ISphinxQLExecutorExecuteNonQuery Method
Executes a non-query command.

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax
int ExecuteNonQuery(
	string command,
	Object parameters = null
)

Parameters

command
Type: SystemString
The command to execute.
parameters (Optional)
Type: SystemObject
Optional parameters for the command.

Return Value

Type: Int32
The number of rows affected by the statement.
Exceptions
ExceptionCondition
ArgumentExceptionOccurs if command is empty.
ArgumentNullExceptionOccurs if command is null.
FulltextExceptionOccurs when there is an error during the execution of the command.
Examples
using (IFulltextSession fulltextSession = fulltextStore.StartSession())
{
    ISphinxQLExecutor sphinxQLExecutor = fulltextSession.Advanced.CreateSphinxQLExecutor();

    int rowsAffected = sphinxQLExecutor.ExecuteNonQuery("DELETE FROM index WHERE id IN @ids", new { ids = new [] { 1, 2, 3 } });
}
See Also