You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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?
EasyCaching/src/EasyCaching.SQLite/Configurations/SQLiteDatabaseProvider.cs
Line 55 in 159a930
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:
EasyCaching/src/EasyCaching.SQLite/DefaultSQLiteCachingProvider.cs
Line 93 in 159a930
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 whenBeginTransaction
is calledEasyCaching/src/EasyCaching.SQLite/DefaultSQLiteCachingProvider.cs
Line 251 in 159a930
I get
BeginTransaction can only be called when the connection is open exception
.The text was updated successfully, but these errors were encountered: