SquidStd.Database
0.26.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SquidStd.Database --version 0.26.0
NuGet\Install-Package SquidStd.Database -Version 0.26.0
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="SquidStd.Database" Version="0.26.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SquidStd.Database" Version="0.26.0" />
<PackageReference Include="SquidStd.Database" />
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 SquidStd.Database --version 0.26.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SquidStd.Database, 0.26.0"
#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 SquidStd.Database@0.26.0
#: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=SquidStd.Database&version=0.26.0
#tool nuget:?package=SquidStd.Database&version=0.26.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<h1 align="center">SquidStd.Database</h1>
FreeSql-backed implementation of the SquidStd.Database.Abstractions contracts. It owns a singleton
IFreeSql, exposes a generic FreeSqlDataAccess<TEntity> with transactional writes (rollback on
failure), bulk operations and paging, parses URI-style connection strings, and can auto-sync the schema
on startup.
Install
dotnet add package SquidStd.Database
Usage
using DryIoc;
using SquidStd.Database.Abstractions.Interfaces.Data;
using SquidStd.Database.Extensions;
var container = new Container();
container.RegisterDatabase(); // reads the "database" config section
// DatabaseConfig: ConnectionString = "postgres://user:pass@host:5432/app", AutoMigrate = true
var users = container.Resolve<IDataAccess<User>>();
await users.InsertAsync(new User { Name = "Ann" });
var page = await users.GetPagedAsync(page: 1, pageSize: 20, orderBy: u => u.Name);
Key types
| Type | Purpose |
|---|---|
RegisterDatabaseExtension |
RegisterDatabase() DI registration. |
DatabaseService |
Owns the singleton IFreeSql; builds it and (optionally) migrates. |
FreeSqlDataAccess<TEntity> |
FreeSql IDataAccess<TEntity> implementation. |
ConnectionStringParser |
URI → provider + native connection string. |
ZLinqResultExtensions |
Zero-alloc in-memory result helpers. |
Related
- Tutorial: Database
License
MIT - part of SquidStd.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- FreeSql (>= 3.5.310)
- FreeSql.DbContext (>= 3.5.310)
- FreeSql.Provider.Sqlite (>= 3.5.310)
- Serilog (>= 4.3.1)
- SquidStd.Database.Abstractions (>= 0.26.0)
- ZLinq (>= 1.5.6)
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 |
|---|---|---|
| 0.37.0 | 6 | 7/17/2026 |
| 0.36.0 | 84 | 7/15/2026 |
| 0.35.0 | 79 | 7/15/2026 |
| 0.34.0 | 83 | 7/14/2026 |
| 0.33.1 | 85 | 7/13/2026 |
| 0.33.0 | 88 | 7/13/2026 |
| 0.32.1 | 88 | 7/13/2026 |
| 0.32.0 | 90 | 7/13/2026 |
| 0.31.0 | 91 | 7/12/2026 |
| 0.30.0 | 89 | 7/12/2026 |
| 0.29.0 | 91 | 7/11/2026 |
| 0.28.0 | 92 | 7/8/2026 |
| 0.27.0 | 97 | 7/7/2026 |
| 0.26.0 | 86 | 7/7/2026 |
| 0.25.0 | 94 | 7/6/2026 |
| 0.24.1 | 97 | 7/6/2026 |
| 0.24.0 | 92 | 7/6/2026 |
| 0.23.0 | 91 | 7/4/2026 |
| 0.22.0 | 88 | 7/4/2026 |
| 0.21.0 | 93 | 7/3/2026 |
Loading failed