SphinxQLCommand 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
C#
public sealed class SphinxQLCommand : DbCommand, 
	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.
ContainerGets 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.
SiteGets 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.
CreateParameterCreates a new instance of a DbParameter object.
(Inherited from DbCommand)
DisposeReleases all resources used by the Component.
(Inherited from Component)
DisposeAsyncAsynchronously disposes the command object.
(Inherited from DbCommand)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
ExecuteNonQuery Executes a SphinxQL statement against a connection object.
(Overrides DbCommandExecuteNonQuery)
ExecuteNonQueryAsyncAn 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)
ExecuteScalarAsyncAn 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))
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
GetTypeGets the Type of the current instance.
(Inherited from Object)
InitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
Prepare Creates a prepared (or compiled) version of the command on the data source. Not supported.
(Overrides DbCommandPrepare)
PrepareAsyncAsynchronously creates a prepared (or compiled) version of the command on the data source.
(Inherited from DbCommand)
ToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)

Events

DisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)

Explicit Interface Implementations

IDbCommandConnectionGets or sets the IDbConnection used by this instance of the IDbCommand.
(Inherited from DbCommand)
IDbCommandCreateParameterCreates a new instance of an IDbDataParameter object.
(Inherited from DbCommand)
IDbCommandExecuteReaderExecutes 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)
ICloneableCloneCreates a new object that is a copy of the current instance.
IDbCommandParametersGets the IDataParameterCollection.
(Inherited from DbCommand)
IDbCommandTransactionGets 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.

See Also