Life of a database file (CLOSED)

Aug 1, 2013 at 1:19 PM
If I do the following

var db = OdbFactory.Open("mybrandnewdbfile.db");

and do some add/query on the same object and dispose it afterwards. How long it will take for the file to be deleted ?

My application requires only temporary storage and needs to delete the file once done. Is there any way we can control this behavior ?

Aug 7, 2013 at 5:49 AM
File is not deleted after Dispose invocation. If you would like to delete db, you could use OdbFactory.Delete or just File.Delete. It should take as long as OS will do that ;)