Is Shared pattern + Task.Run the right practice? #2397
Unanswered
CodingOctocat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project, I may need to use asynchronous database operations, and if the
Connection Type
usesDirect
, an IO exception is thrown:The process cannot access the file 'xxx.ipconfig.db' because it is being used by another process
.Using
Shared
does solve my problem, but is it the right, best practice? More importantly, does it break the database? (Although I haven't encountered a database being corrupted)IPConfigListViewModel.cs#L267-L277
LiteDbHelper.cs
Beta Was this translation helpful? Give feedback.
All reactions