Sphinx QLCommand Class
Represents a SphinxQL statement to execute against Sphinx. This class cannot be inherited.
Definition
Namespace: SphinxConnector.SphinxQL
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public sealed class SphinxQLCommand : DbCommand,
ICloneableVB
Public NotInheritable Class SphinxQLCommand
Inherits DbCommand
Implements ICloneable- Inheritance
- Object MarshalByRefObject Component DbCommand SphinxQLCommand
- Implements
- ICloneable
Constructors
| SphinxQLCommand | Initializes a new instance of the SphinxQLCommand class. |
| SphinxQLCommand(SphinxQLConnection) | Initializes a new instance of the SphinxQLCommand class. |
| SphinxQLCommand(String) | Initializes a new instance of the SphinxQLCommand class. |
| SphinxQLCommand(String, SphinxQLConnection) | Initializes a new instance of the SphinxQLCommand class. |
Properties
| CommandText |
Gets or sets the command text to execute.
(Overrides DbCommandCommandText) |
| CommandTimeout |
Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
Currently not supported.
(Overrides DbCommandCommandTimeout) |
| CommandType |
Indicates or specifies how the CommandText property is interpreted.
Setting this property to TableDirect is not supported.
(Overrides DbCommandCommandType) |
| Connection | Gets or sets the SphinxQLConnection used by this SphinxQLCommand. |
| Container | Gets the IContainer that contains the Component. (Inherited from Component) |
| DesignTimeVisible |
Gets or sets a value indicating whether the command object should be visible in a customized interface control.
(Overrides DbCommand.DesignTimeVisible) |
| Parameters | Gets the collection of SphinxQLParameter objects. |
| Site | Gets or sets the ISite of the Component. (Inherited from Component) |
| Transaction | Gets or sets the SphinxQLTransaction within which this SphinxQLCommand object executes. |
| UpdatedRowSource |
Gets or sets how command results are applied to the DataRow
when used by the Update method of a DbDataAdapter.
Currently not supported.
(Overrides DbCommandUpdatedRowSource) |
Methods
| Cancel |
Attempts to cancel the execution of a SphinxQLCommand.
Currently not supported.
(Overrides DbCommandCancel) |
| Clone | Clones this instance including parameters. |
| CreateParameter | Creates a new instance of a DbParameter object. (Inherited from DbCommand) |
| Dispose | Releases all resources used by the Component. (Inherited from Component) |
| DisposeAsync | Asynchronously disposes the command object. (Inherited from DbCommand) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| ExecuteNonQuery |
Executes a SphinxQL statement against a connection object.
(Overrides DbCommandExecuteNonQuery) |
| ExecuteNonQueryAsync | An asynchronous version of ExecuteNonQuery, which executes the command against its connection object, returning the number of rows affected.
Invokes ExecuteNonQueryAsync(CancellationToken) with CancellationToken.None. (Inherited from DbCommand) |
| ExecuteNonQueryAsync(CancellationToken) |
Executes a SphinxQL statement against a connection object.
(Overrides DbCommandExecuteNonQueryAsync(CancellationToken)) |
| ExecuteReader | Executes the command text against the connection. |
| ExecuteReader(CommandBehavior) | Executes the command text against the connection. |
| ExecuteReaderAsync | Executes the command text against the connection. |
| ExecuteReaderAsync(CancellationToken) | Executes the command text against the connection. |
| ExecuteReaderAsync(CommandBehavior) | Executes the command text against the connection. |
| ExecuteReaderAsync(CommandBehavior, CancellationToken) | Executes the command text against the connection. |
| ExecuteScalar |
Executes the query and returns the first column of the first row in the result set returned by the query.
All other columns and rows are ignored.
(Overrides DbCommandExecuteScalar) |
| ExecuteScalarAsync | An asynchronous version of ExecuteScalar, which executes the command and returns the first column of the first row in the first returned result set. All other columns, rows and result sets are ignored.
Invokes ExecuteScalarAsync(CancellationToken) with CancellationToken.None. (Inherited from DbCommand) |
| ExecuteScalarAsync(CancellationToken) |
Executes the query and returns the first column of the first row in the result set returned by the query.
All other columns and rows are ignored.
(Overrides DbCommandExecuteScalarAsync(CancellationToken)) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
| Prepare |
Creates a prepared (or compiled) version of the command on the data source. Not supported.
(Overrides DbCommandPrepare) |
| PrepareAsync | Asynchronously creates a prepared (or compiled) version of the command on the data source. (Inherited from DbCommand) |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component) |
Events
| Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component) |
Explicit Interface Implementations
| IDbCommandConnection | Gets or sets the IDbConnection used by this instance of the IDbCommand. (Inherited from DbCommand) |
| IDbCommandCreateParameter | Creates a new instance of an IDbDataParameter object. (Inherited from DbCommand) |
| IDbCommandExecuteReader | Executes the CommandText against the Connection and builds an IDataReader. (Inherited from DbCommand) |
| IDbCommandExecuteReader(CommandBehavior) | Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values. (Inherited from DbCommand) |
| ICloneableClone | Creates a new object that is a copy of the current instance. |
| IDbCommandParameters | Gets the IDataParameterCollection. (Inherited from DbCommand) |
| IDbCommandTransaction | Gets or sets the DbTransaction within which this DbCommand object executes. (Inherited from DbCommand) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.