IObjectDbEsentDeleteAllT Method |
Namespace: Orthogonal.ObjectDb.Esent
bool DeleteAll<T>()
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.