SquidStd.Database.Abstractions
0.18.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.Abstractions --version 0.18.0
NuGet\Install-Package SquidStd.Database.Abstractions -Version 0.18.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.Abstractions" Version="0.18.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SquidStd.Database.Abstractions" Version="0.18.0" />
<PackageReference Include="SquidStd.Database.Abstractions" />
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.Abstractions --version 0.18.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SquidStd.Database.Abstractions, 0.18.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.Abstractions@0.18.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.Abstractions&version=0.18.0
#tool nuget:?package=SquidStd.Database.Abstractions&version=0.18.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<h1 align="center">SquidStd.Database.Abstractions</h1>
Provider-agnostic data-access contracts for SquidStd. Entities derive from BaseEntity (a Guid id
plus UTC timestamps) and are accessed through the generic IDataAccess<TEntity> - full CRUD, bulk
operations, paging, and composable queries - without binding to any specific ORM.
Install
dotnet add package SquidStd.Database.Abstractions
Usage
using SquidStd.Database.Abstractions.Data.Entities;
using SquidStd.Database.Abstractions.Interfaces.Data;
public sealed class User : BaseEntity
{
public string Name { get; set; } = string.Empty;
}
// IDataAccess<User> is resolved from DI (see the SquidStd.Database package).
public async Task ExampleAsync(IDataAccess<User> users)
{
await users.InsertAsync(new User { Name = "Ann" });
var page = await users.GetPagedAsync(page: 1, pageSize: 20, orderBy: u => u.Name);
}
Key types
| Type | Purpose |
|---|---|
IDataAccess<TEntity> |
CRUD + bulk + paged + composable query contract. |
BaseEntity |
Guid id + UTC created/updated base entity. |
PagedResultData<T> |
Paginated result with metadata. |
DatabaseConfig |
Connection string + auto-migrate config section. |
DatabaseProviderType |
Supported provider enum. |
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)
- SquidStd.Abstractions (>= 0.18.0)
- SquidStd.Core (>= 0.18.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on SquidStd.Database.Abstractions:
| Package | Downloads |
|---|---|
|
SquidStd.Database
Package Description |
|
|
SquidStd.Vfs.Database
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.28.0 | 0 | 7/8/2026 |
| 0.27.0 | 42 | 7/7/2026 |
| 0.26.0 | 35 | 7/7/2026 |
| 0.25.0 | 61 | 7/6/2026 |
| 0.24.1 | 61 | 7/6/2026 |
| 0.24.0 | 58 | 7/6/2026 |
| 0.23.0 | 68 | 7/4/2026 |
| 0.22.0 | 68 | 7/4/2026 |
| 0.21.0 | 67 | 7/3/2026 |
| 0.20.0 | 59 | 7/3/2026 |
| 0.19.0 | 65 | 7/3/2026 |
| 0.18.0 | 67 | 7/3/2026 |
| 0.17.0 | 69 | 7/3/2026 |
| 0.16.0 | 72 | 7/3/2026 |
| 0.15.0 | 71 | 7/2/2026 |
| 0.14.1 | 72 | 7/2/2026 |
| 0.14.0 | 69 | 7/2/2026 |
| 0.13.0 | 68 | 7/2/2026 |
| 0.12.0 | 71 | 7/2/2026 |
| 0.11.0 | 76 | 7/2/2026 |
Loading failed