I have the following method inside class DBConnection
. I call the method like this: SQLiteConnection conn = DBConnection.OpenDB();
when I want to o
I haven't used SQLite but that is pretty bizarre behaviour to auto create a brand new database.
You could just adjust your try block to do a Select top 1 * From Table
immediately after you open the connection, if it works, throw away the result and continue to return your conn
object. If it fails, the exception handler should fire.