EntityFrameworkCore.Sqlite.Legacy
1.0.0-ci.11
dotnet add package EntityFrameworkCore.Sqlite.Legacy --version 1.0.0-ci.11
NuGet\Install-Package EntityFrameworkCore.Sqlite.Legacy -Version 1.0.0-ci.11
<PackageReference Include="EntityFrameworkCore.Sqlite.Legacy" Version="1.0.0-ci.11" />
<PackageVersion Include="EntityFrameworkCore.Sqlite.Legacy" Version="1.0.0-ci.11" />
<PackageReference Include="EntityFrameworkCore.Sqlite.Legacy" />
paket add EntityFrameworkCore.Sqlite.Legacy --version 1.0.0-ci.11
#r "nuget: EntityFrameworkCore.Sqlite.Legacy, 1.0.0-ci.11"
#:package EntityFrameworkCore.Sqlite.Legacy@1.0.0-ci.11
#addin nuget:?package=EntityFrameworkCore.Sqlite.Legacy&version=1.0.0-ci.11&prerelease
#tool nuget:?package=EntityFrameworkCore.Sqlite.Legacy&version=1.0.0-ci.11&prerelease
EntityFrameworkCore.Sqlite.Legacy
NuGet package for EF Core 10 projects that need legacy encrypted SQLite compatibility through a bridge host.
Install
dotnet add package EntityFrameworkCore.Sqlite.Legacy
Designed for legacy encrypted datasets
This package is commonly used when the database was created with provider/encryption stacks historically found in large-scale legacy enterprise systems, including scenarios with RC4 or RSA-oriented legacy encryption workflows.
It keeps EF Core at application level while delegating low-level DB opening/execution to a host that runs with System.Data.SQLite.
How it works
DbContext (EF Core 10) → UseSqliteLegacy(...) → Named Pipe Bridge → Sqlite.LegacyBridge.Host (net462) → System.Data.SQLite → legacy encrypted db
Setup in Startup
using EntityFrameworkCore.Sqlite.Legacy;
SqliteLegacyDbContextOptionsExtensions.SetupBridgeHost();
Then configure your context:
services.AddDbContext<MyDbContext>(options =>
{
options.UseSqliteLegacy(o =>
{
o.DatabasePath(@"C:\data\plu.db3");
o.Password("your-password");
});
});
Automatic host provisioning
SetupBridgeHost() checks runtime legacy/ content and downloads host binaries if missing:
https://github.com/matheushoske/Sqlite.LegacyBridge.Host/releases/latest/download/Sqlite.LegacyBridge.Host.zip
Advanced configuration example
optionsBuilder.UseSqliteLegacy(o =>
{
o.DatabasePath(@"C:\data\cfe.db3");
o.Password("your-password");
o.HostExecutablePath(@"C:\myapp\legacy\Sqlite.LegacyBridge.Host.exe");
}, sqlite =>
{
sqlite.MigrationsAssembly("My.Migrations");
});
Compatibility
- Target:
net10.0 - EF family:
10.x
Need EF Core 3.1? Use:
EntityFrameworkCore.Sqlite.Legacy.Ef31
Notes for production legacy environments
- Validate encryption/password compatibility with your original DB creator stack.
- Keep host and native SQLite files together.
- Prefer controlled rollout with fixed package/release versions.
- For migration edge-cases in old providers, use baseline + manual SQL strategy.
Troubleshooting
file is not a database: wrong password, wrong file, incompatible encryption/provider pairing.- Host not found: call
SetupBridgeHost()before DbContext wiring. - Interop/runtime errors: check architecture requirements (
x86in many legacy setups). - Startup blocked: verify antivirus rules for host process creation.
Links
- Source repository: EntityFrameworkCore.Sqlite.Legacy
- Host binaries: Sqlite.LegacyBridge.Host
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.EntityFrameworkCore.Sqlite (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-ci.11 | 70 | 4/29/2026 |
| 1.0.0-ci.10 | 68 | 4/24/2026 |
| 1.0.0-ci.9 | 72 | 4/23/2026 |
| 1.0.0-ci.8 | 66 | 4/23/2026 |