Nj.LibSql.Data
10.0.0-preview.1
dotnet add package Nj.LibSql.Data --version 10.0.0-preview.1
NuGet\Install-Package Nj.LibSql.Data -Version 10.0.0-preview.1
<PackageReference Include="Nj.LibSql.Data" Version="10.0.0-preview.1" />
<PackageVersion Include="Nj.LibSql.Data" Version="10.0.0-preview.1" />
<PackageReference Include="Nj.LibSql.Data" />
paket add Nj.LibSql.Data --version 10.0.0-preview.1
#r "nuget: Nj.LibSql.Data, 10.0.0-preview.1"
#:package Nj.LibSql.Data@10.0.0-preview.1
#addin nuget:?package=Nj.LibSql.Data&version=10.0.0-preview.1&prerelease
#tool nuget:?package=Nj.LibSql.Data&version=10.0.0-preview.1&prerelease
Nj.EntityFrameworkCore.LibSql
Community EF Core 10 provider for
libSQL, backed by in-repo
Nj.LibSql.Data (architecture).
Status:
10.0.0-preview.1(prerelease). APIs may change. Do not use in production until a stable10.0.xrelease. Install withdotnet add package Nj.EntityFrameworkCore.LibSql --prereleaseonce published to NuGet.org — see releasing.
Package identity
| Item | Value |
|---|---|
| NuGet package | Nj.EntityFrameworkCore.LibSql (also Nj.LibSql.Data, Nj.LibSql.Bindings) |
| Namespace / assembly | Nj.EntityFrameworkCore.LibSql |
| Version | 10.0.0-preview.1 |
| License | MIT |
| EF Core | 10.0.10 |
| ADO.NET | Nj.LibSql.Data + Nj.LibSql.Bindings (versions) |
Public API follows Microsoft’s Sqlite naming pattern (UseLibSql,
AddEntityFrameworkLibSql, …). Connection modes are selected only via the
connection string (or an existing LibSqlConnection) — no mode-specific Use*
helpers. Reference: connection-strings.md,
connection-modes.md.
Preview modes
| Mode | Preview | Notes |
|---|---|---|
| Local libSQL file | Yes | File create/delete like EF SQLite |
Remote self-hosted sqld / Turso |
Yes | Database must already exist; Turso via HTTPS/libsql:// (Cloud rejects WebSocket) |
| Embedded replica | Yes (vs sqld) |
Database.Sync / LibSqlConnection.Sync; Turso Cloud Sync hangs — C-019 |
Quick start — local
dotnet run --project samples/LocalSample
Or in code:
optionsBuilder.UseLibSql("Data Source=/tmp/app.db");
Quick start — remote (sqld or Turso)
./eng/start-sqld.sh && ./eng/wait-for-sqld.sh # self-hosted
dotnet run --project samples/RemoteSample
# or: LIBSQL_SAMPLE_CONNECTION='Data Source=libsql://…;Auth Token=…' dotnet run --project samples/RemoteSample
optionsBuilder.UseLibSql("Data Source=http://127.0.0.1:8080");
// Turso: Data Source=libsql://<db>-<org>.turso.io;Auth Token=<token>
Quick start — embedded replica
Requires a reachable primary (self-hosted sqld recommended; Turso Sync is
C-019):
./eng/start-sqld.sh && ./eng/wait-for-sqld.sh
dotnet run --project samples/EmbeddedReplicaSample
optionsBuilder.UseLibSql(
"Data Source=/tmp/replica.db;Sync URL=http://127.0.0.1:8080;Read Your Writes=False");
// then: await context.Database.SyncAsync();
DI, pooling, existing connection
dotnet run --project samples/DiPoolingSample
Covers AddDbContextPool, AddDbContextFactory, and UseLibSql(LibSqlConnection).
Migrations / design-time
See samples/MigrationsSample (dotnet-ef
10.0.10, IDesignTimeDbContextFactory, migrate + scaffold). Overview:
docs/migrations.md.
Contributor build (no private secrets)
dotnet restore Nj.EntityFrameworkCore.LibSql.slnx
dotnet build Nj.EntityFrameworkCore.LibSql.slnx -c Release
dotnet test test/Nj.EntityFrameworkCore.LibSql.UnitTests -c Release
dotnet run --project samples/LocalSample
./eng/start-sqld.sh && ./eng/wait-for-sqld.sh
dotnet run --project samples/RemoteSample
Full guide: CONTRIBUTING.md.
Documentation
- Docs index
- Architecture
- Connection modes · Connection strings
- Migrate from EF SQLite
- Transactions · Deployment
- Compatibility · Limitations
- Releasing · Observability
- Contributing · Security
Repository
- GitHub: nareshjois/Nj.EntityFrameworkCore.LibSQL
- Attribution: NOTICE
- Changelog: CHANGELOG.md
License
MIT — see LICENSE. Imported EF Core SQLite provider source retains Microsoft’s MIT copyright headers; community modifications are attributed in NOTICE.
| 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
- Nj.LibSql.Bindings (>= 10.0.0-preview.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Nj.LibSql.Data:
| Package | Downloads |
|---|---|
|
Nj.EntityFrameworkCore.LibSql
EF Core 10 provider for libSQL using Nj.LibSql.Data. Attributed baseline from Microsoft.EntityFrameworkCore.Sqlite.Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0-preview.1 | 145 | 7/17/2026 |