How do I treat the SQLiteCommand
object,
do I have to call Dispose()
after ExecuteScalar
, ExecuteNonQuery
and ExecuteReader
or not?
The documentation example on SQLiteCommand doesn't dispose it whilst in the SQLiteTransaction the example disposes the SQLiteCommand object.
I always close the data reader object though. My application accesses the db from many threads.
Mostly I am interested in not leaking connections or disturbing SQLite. I am aware of using
and IDisposable
usage