 | IFulltextSessionDeleteTDocument Method (Decimal) |
Schedule the documents with the given id(s) for deletion. The documents will be deleted when
FlushChanges is called.
Namespace:
SphinxConnector.FluentApi
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
Syntaxvoid Delete<TDocument>(
params decimal[] documentIds
)
Sub Delete(Of TDocument) (
ParamArray documentIds As Decimal()
)
Parameters
- documentIds
- Type: SystemDecimal
The id(s) of the document(s) to delete.
Type Parameters
- TDocument
- The type of document for which the ids are provied.
Exceptions
Examples
Delete the documents with the id's 4, 8, and 15:
using (IFulltextSession fulltextSession = fulltextStore.StartSession())
{
fulltextSession.Delete<Product>(4, 8, 15);
fulltextSession.FlushChanges();
}
See Also