Closed InteXX closed 2 years ago
Yes, this is no longer supported with System.Data.Sqlite, and well documented: https://sqlite.org/forum/info/ca910d2f0d4e45c8
Maybe you can use this old release of the Toolbox (not tested): https://github.com/ErikEJ/SqlCeToolbox/releases/tag/vs2012
You're always right there with your responses. I don't know how you do it.
Perhaps you might consider including an additional package to support encryption?
The Microsoft documentation favors SQLCipher (indeed, it's the only one mentioned that has a NuGet package—and it's currently under active development). I was able to get it working under EF Core in my Blazor WASM app using a slight variation of this technique.
Brice weighs in on the issue as well, here. Granted that post is pre-EFCore, but all it takes is a substitution of Microsoft.EntityFrameworkCore.Sqlite.Core
for Microsoft.Data.Sqlite.Core
(when working with EF Core).
I'm unfamiliar with the internal architecture of SqlCeToolbox, but as a first guess I imagine you might be able to check for a password and use SQLCipher if one is provided and SQLite if not.
Could this work?
I do not use Microsoft.Data.Sqlite at the moment, not fully featured enough.
Microsoft.Data.Sqlite.Core
Apparently there's a significant difference.
I'm not suggesting using it exclusively. Only when encryption comes into play.
Easy to suggest, a huge amount of work to implement and test.
I suspected as much. Thanks for clarifying.
DB Browser for SQLite it is :-)
I'm getting an error when I attempt to connect to an encrypted SQLite database:
Steps to reproduce
Further technical details
Toolbox/Power Tools version: v4.8.735
Database engine: SQLite
Visual Studio or SSMS version: Visual Studio 2022