Click or drag to resize

ObjectDbDeleteAllT Method

Deletes all objects of a type from the database.

Namespace:  Orthogonal.ObjectDb.Esent
Assembly:  Orthogonal.ObjectDb.Esent (in Orthogonal.ObjectDb.Esent.dll) Version: 4.0.0
Syntax
Remarks

In the ESENT backed database this method actually deletes the database table that backs the Type, which is expected to happen in a fraction of a second independent of the size of the table. In the Azure Table backed database this method loops through the table rows and deletes them in batches of 500, which may take a noticeable amount of time that is proportional to the table size.

This method was added in 3-0-2 for the primary purpose of making unit tests easier to code and run repeatedly. It is hoped however that the method may occasionally be useful in real-world applications.

See Also