SphinxQLDataAdapter Class

Represents a set of data commands and a connection that are used to fill a DataSet. This class cannot be inherited.

Definition

Namespace: SphinxConnector.SphinxQL
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public sealed class SphinxQLDataAdapter : DbDataAdapter, 
	IDbDataAdapter, IDataAdapter
Inheritance
Object    MarshalByRefObject    Component    DataAdapter    DbDataAdapter    SphinxQLDataAdapter
Implements
IDataAdapter, IDbDataAdapter

Example

This example shows how to populate a DataTable object with data from an index with the help of the SphinxQLDataAdapter class.
C#
SphinxQLDataAdapter dataAdapter = new SphinxQLDataAdapter();

using (var sphinxQLConnection = new SphinxQLConnection("Data Source=localhost;Port=9306"))
{
    var sphinxQLCommand = new SphinxQLCommand("SELECT * from sakila;", sphinxQLConnection);

    sphinxQLConnection.Open();

    dataAdapter.SelectCommand = sphinxQLCommand;

    DataTable dataTable = new DataTable();

    dataAdapter.Fill(dataTable);
    dataAdapter.Dispose();
}

Constructors

SphinxQLDataAdapter Initializes a new instance of the SphinxQLDataAdapter class.
SphinxQLDataAdapter(String, SphinxQLConnection) Initializes a new instance of the SphinxQLDataAdapter class.

Properties

AcceptChangesDuringFillGets or sets a value indicating whether AcceptChanges is called on a DataRow after it is added to the DataTable during any of the Fill operations.
(Inherited from DataAdapter)
AcceptChangesDuringUpdateGets or sets whether AcceptChanges is called during a Update(DataSet).
(Inherited from DataAdapter)
ContainerGets the IContainer that contains the Component.
(Inherited from Component)
ContinueUpdateOnErrorGets or sets a value that specifies whether to generate an exception when an error is encountered during a row update.
(Inherited from DataAdapter)
DeleteCommand Gets or sets a command for deleting records from the data set.
FillLoadOptionGets or sets the LoadOption that determines how the adapter fills the DataTable from the DbDataReader.
(Inherited from DataAdapter)
InsertCommand Gets or sets a command used to insert new records into the data source.
MissingMappingActionDetermines the action to take when incoming data does not have a matching table or column.
(Inherited from DataAdapter)
MissingSchemaActionDetermines the action to take when existing DataSet schema does not match incoming data.
(Inherited from DataAdapter)
ReturnProviderSpecificTypesGets or sets whether the Fill method should return provider-specific values or common CLS-compliant values.
(Inherited from DataAdapter)
SelectCommand Gets or sets a command used to select records in the data source.
SiteGets or sets the ISite of the Component.
(Inherited from Component)
TableMappingsGets a collection that provides the primary mapping between a source table and a DataTable.
(Inherited from DataAdapter)
UpdateBatchSizeGets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch.
(Inherited from DbDataAdapter)
UpdateCommand Gets or sets a command used to update records in the data source.

Methods

DisposeReleases all resources used by the Component.
(Inherited from Component)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Fill(DataSet)Adds or refreshes rows in the DataSet.
(Inherited from DbDataAdapter)
Fill(DataTable)Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataTable name.
(Inherited from DbDataAdapter)
Fill(DataSet, String)Adds or refreshes rows in the DataSet to match those in the data source using the DataSet and DataTable names.
(Inherited from DbDataAdapter)
Fill(Int32, Int32, DataTable)Adds or refreshes rows in one or more DataTable objects to match those in the data source starting at the specified record and retrieving up to the specified maximum number of records.
(Inherited from DbDataAdapter)
Fill(DataSet, Int32, Int32, String)Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names.
(Inherited from DbDataAdapter)
FillSchema(DataSet, SchemaType)Adds a DataTable named "Table" to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType.
(Inherited from DbDataAdapter)
FillSchema(DataTable, SchemaType)Configures the schema of the specified DataTable based on the specified SchemaType.
(Inherited from DbDataAdapter)
FillSchema(DataSet, SchemaType, String)Adds a DataTable to the specified DataSet and configures the schema to match that in the data source based upon the specified SchemaType and DataTable.
(Inherited from DbDataAdapter)
GetFillParametersGets the parameters set by the user when executing an SQL SELECT statement.
(Inherited from DbDataAdapter)
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
ResetFillLoadOptionResets FillLoadOption to its default state and causes Fill(DataSet) to honor AcceptChangesDuringFill.
(Inherited from DataAdapter)
ShouldSerializeAcceptChangesDuringFillDetermines whether the AcceptChangesDuringFill property should be persisted.
(Inherited from DataAdapter)
ShouldSerializeFillLoadOptionDetermines whether the FillLoadOption property should be persisted.
(Inherited from DataAdapter)
ToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Update(DataRow)Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified array in the DataSet.
(Inherited from DbDataAdapter)
Update(DataSet)Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataSet.
(Inherited from DbDataAdapter)
Update(DataTable)Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataTable.
(Inherited from DbDataAdapter)
Update(DataSet, String)Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the DataSet with the specified DataTable name.
(Inherited from DbDataAdapter)

Events

DisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
FillErrorReturned when an error occurs during a fill operation.
(Inherited from DataAdapter)
RowUpdated Occurs during update after a command is executed against the data source.
RowUpdating Occurs during update before a command is executed against the data source.

Explicit Interface Implementations

ICloneableCloneCreates a new object that is a copy of the current instance.
(Inherited from DbDataAdapter)
IDbDataAdapterDeleteCommand Gets or sets a command for deleting records from the data set.
IDbDataAdapterInsertCommand Gets or sets a command used to insert new records into the data source.
IDbDataAdapterSelectCommand Gets or sets a command used to select records in the data source.
IDbDataAdapterUpdateCommand Gets or sets a command used to update records in the data source.
IDataAdapterTableMappingsGets a collection that indicates how a source table is mapped to a dataset table.
(Inherited from DataAdapter)

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