![]() | ISphinxQLExecutorExecuteNonQueryAsync Method (String, CancellationToken, Object) |
Namespace: SphinxConnector.FluentApi
Task<int> ExecuteNonQueryAsync( string commandText, CancellationToken cancellationToken, Object parameters = null )
using (IFulltextSession fulltextSession = fulltextStore.StartSession()) { ISphinxQLExecutor sphinxQLExecutor = fulltextSession.Advanced.CreateSphinxQLExecutor(); CancellationTokenSource cts = new CancellationTokenSource(); int rowsAffected = await sphinxQLExecutor.ExecuteNonQueryAsync("DELETE FROM index WHERE id IN @ids", cts.Token, new { ids = new [] { 1, 2, 3 } }); }