SoftwareDriven.Persistence.EF.SQLite
3.0.4
dotnet add package SoftwareDriven.Persistence.EF.SQLite --version 3.0.4
NuGet\Install-Package SoftwareDriven.Persistence.EF.SQLite -Version 3.0.4
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="SoftwareDriven.Persistence.EF.SQLite" Version="3.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SoftwareDriven.Persistence.EF.SQLite" Version="3.0.4" />
<PackageReference Include="SoftwareDriven.Persistence.EF.SQLite" />
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 SoftwareDriven.Persistence.EF.SQLite --version 3.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SoftwareDriven.Persistence.EF.SQLite, 3.0.4"
#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 SoftwareDriven.Persistence.EF.SQLite@3.0.4
#: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=SoftwareDriven.Persistence.EF.SQLite&version=3.0.4
#tool nuget:?package=SoftwareDriven.Persistence.EF.SQLite&version=3.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SoftwareDriven.Persistence.EF.SQLite
Entity Framework Core / SQLite provider for SoftwareDriven.Persistence. Bundles the EF Core base provider. Targets net8.0 and net10.0.
Installation
dotnet add package SoftwareDriven.Persistence.EF.SQLite
Setup
// Register EF manager and providers
services.AddEntityFramework<SQLiteManager>();
services.AddEFProviderScoped<MyModel>((modelBuilder, entityBuilder) =>
{
entityBuilder.HasMany(x => x.Children).WithOne().OnDelete(DeleteBehavior.Cascade);
});
// Connect
var manager = serviceProvider.GetRequiredService<EFManager>() as SQLiteManager;
await manager!.Connect("data/mydb.db");
With DbContext options
await manager.Connect("data/mydb.db", options =>
{
options.EnableSensitiveDataLogging();
});
Provider Registration
// Scoped (recommended for web apps)
services.AddEFProviderScoped<MyModel>(map, registerBaseInterface: true);
// Singleton
services.AddEFProviderSingleton<MyModel>(map, registerBaseInterface: true);
// Without mapping
services.AddEFProviderScoped<SimpleModel>();
The registerBaseInterface parameter controls whether IBasicPersistenceProvider<T> is registered in DI (default: true). Set to false when resolving the concrete EFRepositoryProvider<T> directly.
Entity Mapping
services.AddEFProviderScoped<Order>((modelBuilder, entityBuilder) =>
{
// Complex types
modelBuilder.Entity<Address>().ComplexProperty(x => x.Location);
// Relationships
entityBuilder.HasMany(x => x.Items).WithOne().OnDelete(DeleteBehavior.Cascade);
});
Usage
var provider = serviceProvider.GetRequiredService<EFRepositoryProvider<MyModel>>();
await provider.CreateOrUpdate(new MyModel { Title = "Hello" });
var results = await provider.FindByExpression(x => x.Title == "Hello");
Features
SupportsTotalCount: trueSupportsPagingState: false (offset-based pagination)DefaultIdSource:GuidSource- Implements
IBasicPersistenceProvider<T>(not the extendedIPersistenceProvider<T>)
License
MIT
| 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.EntityFrameworkCore.Sqlite (>= 10.0.5)
- SoftwareDriven.Persistence (>= 3.0.5)
-
net8.0
- Microsoft.EntityFrameworkCore.Sqlite (>= 8.0.25)
- SoftwareDriven.Persistence (>= 3.0.5)
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 |
|---|---|---|
| 3.0.4 | 94 | 4/2/2026 |
| 3.0.3 | 105 | 2/11/2026 |
| 3.0.0 | 111 | 2/1/2026 |
| 2.12.0 | 114 | 1/8/2026 |
| 2.9.0 | 263 | 11/30/2024 |
| 2.8.0 | 227 | 7/7/2024 |
| 2.7.12 | 222 | 6/10/2024 |
| 2.7.11 | 195 | 6/4/2024 |
| 2.7.10 | 171 | 6/3/2024 |
| 2.7.9 | 192 | 6/3/2024 |
| 2.7.8 | 221 | 5/29/2024 |
| 2.7.7 | 220 | 5/24/2024 |
| 2.7.6 | 225 | 5/16/2024 |
| 2.7.5 | 200 | 5/16/2024 |
| 2.7.4 | 227 | 5/7/2024 |
| 2.7.2 | 234 | 5/7/2024 |
| 2.7.1 | 237 | 4/22/2024 |
| 2.7.0 | 283 | 11/27/2023 |