Nj.LibSql.Bindings 10.0.0-preview.1

This is a prerelease version of Nj.LibSql.Bindings.
dotnet add package Nj.LibSql.Bindings --version 10.0.0-preview.1
                    
NuGet\Install-Package Nj.LibSql.Bindings -Version 10.0.0-preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nj.LibSql.Bindings" Version="10.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nj.LibSql.Bindings" Version="10.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Nj.LibSql.Bindings" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nj.LibSql.Bindings --version 10.0.0-preview.1
                    
#r "nuget: Nj.LibSql.Bindings, 10.0.0-preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nj.LibSql.Bindings@10.0.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nj.LibSql.Bindings&version=10.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Nj.LibSql.Bindings&version=10.0.0-preview.1&prerelease
                    
Install as a Cake Tool

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 stable 10.0.x release. Install with dotnet add package Nj.EntityFrameworkCore.LibSql --prerelease once 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

Repository

License

MIT — see LICENSE. Imported EF Core SQLite provider source retains Microsoft’s MIT copyright headers; community modifications are attributed in NOTICE.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nj.LibSql.Bindings:

Package Downloads
Nj.LibSql.Data

ADO.NET provider for libSQL (local + remote Hrana). Microsoft-style LibSql* public API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0-preview.1 160 7/17/2026