NuExt.System.Data
0.8.0
Prefix Reserved
See the version list below for details.
dotnet add package NuExt.System.Data --version 0.8.0
NuGet\Install-Package NuExt.System.Data -Version 0.8.0
<PackageReference Include="NuExt.System.Data" Version="0.8.0" />
<PackageVersion Include="NuExt.System.Data" Version="0.8.0" />
<PackageReference Include="NuExt.System.Data" />
paket add NuExt.System.Data --version 0.8.0
#r "nuget: NuExt.System.Data, 0.8.0"
#:package NuExt.System.Data@0.8.0
#addin nuget:?package=NuExt.System.Data&version=0.8.0
#tool nuget:?package=NuExt.System.Data&version=0.8.0
NuExt.System.Data
NuExt.System.Data provides a lightweight and extensible foundation for data access in .NET applications. It combines practical ADO.NET extensions, reusable DAL and database context abstractions, explicit transaction management, and provider-independent database migrations with validated history tracking.
Features
- ADO.NET Extensions: Provides helpers for reading, converting, and manipulating data through
DataReader,DataRow, andDataTable. - DAL Infrastructure: Includes lightweight base classes and database context abstractions for implementing data access layers.
- Database Migrations: Provides provider-independent migration orchestration with ordered execution, validated migration history, optional version metadata, cancellation support, and provider-specific execution contexts.
DAL Context Ownership
The DAL infrastructure supports two execution models:
- Owned context: When no database context is provided, the provider-specific executor creates and owns the context. It manages the connection, transaction, commit or rollback, and resource cleanup.
- Borrowed context: When an existing database context is provided, the DAL participates in the caller's unit of work without committing, rolling back, or disposing the context.
This allows individual DAL operations to run independently while also supporting coordinated operations across multiple DAL components within the same transaction.
Database Migration Model
The migration framework is designed for application-integrated, forward-only database evolution. Migrations are registered explicitly in the order in which they must be applied, making the target schema deterministic and avoiding reflection-based discovery.
Applied migrations are stored as an ordered history. Before applying pending migrations, the framework validates that the stored history is an exact prefix of the configured migration sequence. This detects removed, renamed, reordered, or unknown migrations before any schema changes are made.
Transaction ownership is explicit and provider-controlled. A provider can execute the complete migration batch within its own transaction or participate in an existing database context, allowing migrations and application operations to share the same transaction.
Commonly Used Types
System.Data.DalBase<TDbContext>: Base class for DAL implementations that supports borrowed contexts and provider-managed owned context scopes.System.Data.DataReaderExtensions: Provides extension methods for data reader operations.System.Data.DataRowExtensions: Provides extension methods for data row operations.System.Data.DataTableExtensions: Provides extension methods for data table operations.System.Data.DbMigration<TContext>: Base class for defining ordered database schema and data migrations.System.Data.DbMigrationContext: Base class for provider-specific migration execution contexts.System.Data.DbMigrator<TContext>: Validates migration configuration and applied history, and executes pending migrations.System.Data.IDbContext: Defines transaction state and lifecycle operations for database contexts.System.Data.IDbContextExecutor<TDbContext>: Defines provider-specific ownership and execution of database context scopes.System.Data.IDbMigrationExecutor<TContext>: Defines provider-specific migration execution and transaction handling.System.Data.IDbMigrationHistory<TContext>: Defines storage operations for applied migration history.
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".
Compatibility
.NET Standard 2.0+, .NET 8/9/10 and .NET Framework 4.6.2+
Usage Examples
For a complete provider implementation and migration example, see:
Ecosystem
- NuExt.Minimal.Mvvm
- NuExt.Minimal.Mvvm.SourceGenerator
- NuExt.Minimal.Behaviors.Wpf
- NuExt.Minimal.Mvvm.Wpf
- NuExt.Minimal.Mvvm.MahApps.Metro
- NuExt.System
- NuExt.System.Data.SQLite
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.7.6)
-
.NETFramework 4.7.1
- NuExt.System (>= 0.7.6)
-
.NETStandard 2.0
- NuExt.System (>= 0.7.6)
-
.NETStandard 2.1
- NuExt.System (>= 0.7.6)
-
net10.0
- NuExt.System (>= 0.7.6)
-
net8.0
- NuExt.System (>= 0.7.6)
-
net9.0
- NuExt.System (>= 0.7.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NuExt.System.Data:
| Package | Downloads |
|---|---|
|
NuExt.System.Data.SQLite
High-performance SQLite data access utilities for .NET, providing synchronized process-local connection access, explicit transaction management, a consistent DAL foundation, and transactional database migrations with validated history tracking. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.2 | 0 | 10/13/2026 |
| 0.8.1 | 0 | 10/13/2026 |
| 0.8.0 | 75 | 10/12/2026 |
| 0.7.6 | 128 | 10/2/2026 |
| 0.7.5 | 215 | 6/30/2026 |
| 0.7.4 | 175 | 6/29/2026 |
| 0.7.3 | 245 | 3/15/2026 |
| 0.7.1 | 183 | 3/2/2026 |
| 0.7.0 | 185 | 2/12/2026 |
| 0.6.0 | 187 | 1/11/2026 |
| 0.5.2 | 372 | 12/15/2025 |
| 0.5.1 | 307 | 12/14/2025 |
| 0.4.1 | 528 | 12/10/2025 |
| 0.4.0 | 261 | 12/5/2025 |
| 0.3.3 | 330 | 2/21/2025 |
| 0.3.2 | 268 | 1/22/2025 |
| 0.3.1 | 261 | 1/19/2025 |
| 0.3.0 | 261 | 1/13/2025 |