NuExt.System.Data
0.8.5
Prefix Reserved
dotnet add package NuExt.System.Data --version 0.8.5
NuGet\Install-Package NuExt.System.Data -Version 0.8.5
<PackageReference Include="NuExt.System.Data" Version="0.8.5" />
<PackageVersion Include="NuExt.System.Data" Version="0.8.5" />
<PackageReference Include="NuExt.System.Data" />
paket add NuExt.System.Data --version 0.8.5
#r "nuget: NuExt.System.Data, 0.8.5"
#:package NuExt.System.Data@0.8.5
#addin nuget:?package=NuExt.System.Data&version=0.8.5
#tool nuget:?package=NuExt.System.Data&version=0.8.5
NuExt.System.Data
NuExt.System.Data is a lightweight, provider-independent data access foundation for .NET applications and application frameworks, combining practical ADO.NET extensions, explicit database context ownership, reusable DAL abstractions, and deterministic database migration orchestration.
Why NuExt.System.Data?
- Provider-independent � common DAL and migration contracts remain separate from provider-specific connections, transactions, and history storage
- Ownership-aware � DAL operations explicitly distinguish owned contexts from caller-provided contexts
- Composable � independent operations and larger transactional units of work use the same DAL implementation
- Migration-safe � configured migrations and applied history are validated as one ordered sequence before pending changes run
- ADO.NET-focused � typed reader, row, and table helpers without an ORM or tracking model
- Consistent across runtimes � a stable API surface across modern .NET, .NET Standard, and .NET Framework
- Dependency-light � no required ORM, hosting model, dependency injection container, or database provider
Designed for
NuExt.System.Data is intended for application and framework authors who need:
- a small reusable foundation above ADO.NET rather than a full ORM;
- explicit ownership and transaction boundaries in data access code;
- the same DAL methods for standalone operations and caller-controlled units of work;
- deterministic migration orchestration with provider-specific execution;
- strict validation of migration ordering and applied history;
- compatibility across modern .NET and legacy .NET Framework targets.
Core infrastructure
ADO.NET extensions
DataReaderExtensionsadds name-based typed accessors and nullable getters for older targets.DataRowExtensionsprovides typed and nullable conversions by index, name,DataColumn, orDataRowVersion.DataTableExtensionsprovides focused table operations without object tracking.- Compatibility implementations resolve column names to ordinals and preserve provider behavior.
DAL and database contexts
IDbContextdefines the lifetime contract for provider-specific database contexts.IDbContextExecutor<TDbContext>creates and executes owned context scopes while also supporting operations over existing contexts.DalBase<TDbContext>centralizes DAL execution and exposes the same synchronous and asynchronous operation model for owned and borrowed contexts.DbContextExtensionsadds focused helpers around context execution without hiding ownership boundaries.
Explicit context ownership
The DAL infrastructure supports two execution models:
- Owned context � when no context is supplied, the provider-specific executor creates and owns the context, including connection lifetime, transaction completion, and cleanup.
- Borrowed context � when an existing context is supplied, the DAL participates in the caller's unit of work without committing, rolling back, or disposing that context.
This design allows a DAL operation to run independently or compose with other operations inside one caller-controlled transaction without duplicating data access logic.
Deterministic database migrations
Migration orchestration is provider-independent; transaction handling and history persistence are provider-specific.
DbMigration<TContext>represents an ordered schema or data change with a stable identifier.DbMigrationContextcarries cancellation and provides a base for provider-specific state.DbMigrator<TContext>validates migration configuration and history before applying pending migrations.IDbMigrationExecutor<TContext>defines the provider-specific execution and transaction boundary.IDbMigrationHistory<TContext>defines migration history storage.AppliedDbMigrationrecords the sequence, identifier, UTC application time, and optional version.
Before executing pending migrations, the migrator verifies that:
- configured migration identifiers are non-empty and unique;
- applied history does not contain more entries than the current configuration;
- applied sequence numbers are contiguous and one-based;
- every applied identifier matches the configured migration at the same position.
This treats migration history as a strict prefix of the configured migration sequence and prevents silently continuing from reordered, removed, duplicated, or otherwise inconsistent migrations.
Cancellation and transaction boundaries
- Cancellation is checked before execution and before each pending migration.
- The migration context passes the cancellation token to provider code and migrations.
- A migration is recorded only after its
Upoperation completes successfully. IDbMigrationExecutor<TContext>controls transactions and keeps migration history consistent.
Compatibility
- .NET Standard 2.0+, .NET 8/9/10, and .NET Framework 4.6.2+
- Works with provider-specific implementations built on ADO.NET
- Includes selected ADO.NET API backports for older targets
- Does not require Entity Framework or another ORM
Installation
Via NuGet:
dotnet add package NuExt.System.Data
Or via Visual Studio:
- Go to
Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution.... - Search for
NuExt.System.Data. - Click "Install".
Provider implementation
For a complete provider implementation, transaction strategy, migration history store, and usage example, see:
Ecosystem
- NuExt.System
- NuExt.System.Data.SQLite
- NuExt.Minimal.Mvvm
- NuExt.Minimal.Mvvm.SourceGenerator
- NuExt.Minimal.Behaviors.Wpf
- NuExt.Minimal.Mvvm.Wpf
- NuExt.Minimal.Mvvm.MahApps.Metro
Contributing
Issues and PRs are welcome. Keep changes minimal and performance-conscious.
License
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 is compatible. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- NuExt.System (>= 0.8.0)
-
.NETFramework 4.7.1
- NuExt.System (>= 0.8.0)
-
.NETStandard 2.0
- NuExt.System (>= 0.8.0)
-
.NETStandard 2.1
- NuExt.System (>= 0.8.0)
-
net10.0
- NuExt.System (>= 0.8.0)
-
net8.0
- NuExt.System (>= 0.8.0)
-
net9.0
- NuExt.System (>= 0.8.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NuExt.System.Data:
| Package | Downloads |
|---|---|
|
NuExt.System.Data.SQLite
High-performance ADO.NET infrastructure for SQLite-based .NET applications, providing synchronized process-local connection access, explicit transaction and database context management, a consistent DAL foundation, and transactional migrations with validated history tracking. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.5 | 0 | 10/23/2026 |
| 0.8.4 | 143 | 10/18/2026 |
| 0.8.3 | 137 | 10/14/2026 |
| 0.8.2 | 121 | 10/13/2026 |
| 0.8.1 | 114 | 10/13/2026 |
| 0.8.0 | 130 | 10/12/2026 |
| 0.7.6 | 140 | 10/2/2026 |
| 0.7.5 | 220 | 6/30/2026 |
| 0.7.4 | 180 | 6/29/2026 |
| 0.7.3 | 248 | 3/15/2026 |
| 0.7.1 | 187 | 3/2/2026 |
| 0.7.0 | 189 | 2/12/2026 |
| 0.6.0 | 190 | 1/11/2026 |
| 0.5.2 | 376 | 12/15/2025 |
| 0.5.1 | 309 | 12/14/2025 |
| 0.4.1 | 532 | 12/10/2025 |
| 0.4.0 | 265 | 12/5/2025 |
| 0.3.3 | 335 | 2/21/2025 |
| 0.3.2 | 273 | 1/22/2025 |
| 0.3.1 | 263 | 1/19/2025 |