Open
Description
I keep getting BeginTransaction can only be called when the connection is open
error while using SqLite provider,
How does it supposed to work? What am I doing wrong?
Here we create "connection pool" per ManagedThreadId. All connection by default are closed.
Here is the only place I found where connection is explicitly opened:
In, asp.net core environment I frequently encounter thread switching which cause SQLiteDatabaseProvider
not to use opened connection but to create new connection (closed). Later when BeginTransaction
is called
I get
BeginTransaction can only be called when the connection is open exception
.