EntitySpaces.ORM.SQLite.NET
2026.8.0
dotnet add package EntitySpaces.ORM.SQLite.NET --version 2026.8.0
NuGet\Install-Package EntitySpaces.ORM.SQLite.NET -Version 2026.8.0
<PackageReference Include="EntitySpaces.ORM.SQLite.NET" Version="2026.8.0" />
<PackageVersion Include="EntitySpaces.ORM.SQLite.NET" Version="2026.8.0" />
<PackageReference Include="EntitySpaces.ORM.SQLite.NET" />
paket add EntitySpaces.ORM.SQLite.NET --version 2026.8.0
#r "nuget: EntitySpaces.ORM.SQLite.NET, 2026.8.0"
#:package EntitySpaces.ORM.SQLite.NET@2026.8.0
#addin nuget:?package=EntitySpaces.ORM.SQLite.NET&version=2026.8.0
#tool nuget:?package=EntitySpaces.ORM.SQLite.NET&version=2026.8.0
<img src="https://es-banner.paul-netstep.workers.dev?src=nuget_readme" alt="EntitySpaces" width="531" height="268">
EntitySpaces.ORM.SQLite.NET
Part of the modernized EntitySpaces ORM — SQLite data provider. Actively maintained fork with full .NET Framework 4.8 to .NET 10 support.
Supportability
| .NET targets | .NET Framework 4.8 · .NET 8 · .NET 9 · .NET 10 |
| SQLite | SQLite 3.x (validated with 3.46.1) |
| Driver | System.Data.SQLite.Core 1.0.119 |
❤️ Support this project
If this provider has saved you time on a project, support its development — every contribution helps keep it free and maintained.
You can also sponsor via the ❤️ Sponsor link on this NuGet package (powered by Ko-fi).
📋 Help Shape the Roadmap
Take the 3‑minute survey – your feedback keeps EntitySpaces alive and evolving.
🛠️ Requires EntitySpaces Studio
This package provides the SQL Server runtime only — it does not generate code. Entity and Collection classes are generated from your database schema using EntitySpaces Studio, a separate WinForms tool.
- Get it from the repo: EntitySpaces.Studio
- Download the most recent
.zip— avoid any file tagged-deprecated, that build is kept for reference only. - Connect to your database under Settings → Connection, then run the Generated and Custom class templates.
New Features
- Auto-increment detection for both SQLite forms — the rowid alias (
INTEGER PRIMARY KEY) and the explicitAUTOINCREMENTkeyword — both now correctly generateIsAutoIncrement = truemetadata - Foreign key enforcement is now automatic — the provider appends
Foreign Keys=Trueto the connection string on every connection, no configuration change needed - Concurrency exception detection —
SQLITE_CONSTRAINT(code 19) violations (PK/UNIQUE/FK/CHECK) are translated toesConcurrencyException, consistent with the other providers - Navigation properties generated in Studio from FK relationships defined in the DDL
- Studio metadata engine rewritten to use native SQLite pragmas (
PRAGMA table_info,PRAGMA foreign_key_list) instead ofinformation_schema, which SQLite does not support
Fixes
- FK violations now correctly raise
esConcurrencyExceptioninstead of failing silently — a direct result of foreign key enforcement now being applied by default - Explicit PK inserts on auto-increment tables are now detected correctly, so an explicitly assigned
Idis inserted directly instead of being overwritten by a generated rowid
Dependency Updates
- Updated
System.Configuration.ConfigurationManagerfrom10.0.10to10.0.11- Maintenance release. No API changes affecting EntitySpaces.
Quick Samples
Load a collection:
var customers = new CustomersCollection();
customers.LoadAll();
foreach (var customer in customers)
{
Console.WriteLine(customer.CompanyName);
}
Create, update, delete an entity:
var employee = new Employees();
employee.FirstName = "Joe";
employee.LastName = "Smith";
employee.Save(); // Create
employee.LastName = "Doe";
employee.Save(); // Update
employee.MarkAsDeleted();
employee.Save(); // Delete
SQLite connection string:
esProviderFactory.Factory = new EntitySpaces.Loader.esDataProviderFactory();
esConnectionElement conn = new esConnectionElement();
conn.Provider = "EntitySpaces.SQLiteProvider";
conn.ConnectionString = "Data Source=C:\\path\\to\\database.db;Version=3;Foreign Keys=True;";
esConfigSettings.ConnectionInfo.Connections.Add(conn);
More usage examples (joins, paging, transactions, and the full Fluent SQL API): see the main EntitySpaces README.
Generating your entity classes
See Requires EntitySpaces Studio above.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- System.Data.SQLite.Core (>= 1.0.119)
-
net10.0
- System.Configuration.ConfigurationManager (>= 10.0.11)
- System.Data.SQLite.Core (>= 1.0.119)
-
net8.0
- System.Configuration.ConfigurationManager (>= 10.0.11)
- System.Data.SQLite.Core (>= 1.0.119)
-
net9.0
- System.Configuration.ConfigurationManager (>= 10.0.11)
- System.Data.SQLite.Core (>= 1.0.119)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
This is an actively maintained fork of the EntitySpaces ORM, built on the original architecture. This release modernizes the runtime for .NET Framework 4.8, .NET 8, .NET 9, and .NET 10. • Thread‑safe parameter cache using ConcurrentDictionary (eliminates lock contention). • Safe connection pool management with automatic rollback on errors (prevents connection leaks). • Automatic concurrency exception detection and translation. SQLite specific improvements: • Enhanced auto‑increment detection (INTEGER PRIMARY KEY alias and explicit AUTOINCREMENT). • Automatic Foreign Key enforcement (appends Foreign Keys=True to connection string). • Navigation property generation from DDL foreign key constraints. • Metadata engine rewritten to use native PRAGMA commands (replacing unsupported information_schema). • Concurrency exception translation for SQLITE_CONSTRAINT (19). • Compatible with SQLite 3.x and System.Data.SQLite 1.0.119+.