HyperDev.Data.DB2
1.2.9
dotnet add package HyperDev.Data.DB2 --version 1.2.9
NuGet\Install-Package HyperDev.Data.DB2 -Version 1.2.9
<PackageReference Include="HyperDev.Data.DB2" Version="1.2.9" />
<PackageVersion Include="HyperDev.Data.DB2" Version="1.2.9" />
<PackageReference Include="HyperDev.Data.DB2" />
paket add HyperDev.Data.DB2 --version 1.2.9
#r "nuget: HyperDev.Data.DB2, 1.2.9"
#:package HyperDev.Data.DB2@1.2.9
#addin nuget:?package=HyperDev.Data.DB2&version=1.2.9
#tool nuget:?package=HyperDev.Data.DB2&version=1.2.9
HyperDev.Data.DB2
IBM Db2 provider for HyperDev.Data, part of the HyperDev Fatum framework. Based on the IBM drivers for Windows (Net.IBM.Data.Db2, IBM.EntityFrameworkCore); for Linux use HyperDev.Data.DB2-lnx.
DB2ProviderandDB2ConnectionInfoin theHyperDev.Data.DB2namespace (provider nameIBM.Data.DB2.Client)- Bulk copy, sequences, temporary tables and stored procedures through the HyperDev.Data
DatabaseAPI - Query clauses (
DB2QueryOptimizer):DataContext.WithReadOnlyaddsFOR READ ONLY,DataContext.WithNoLockaddsWITH UR - Corrections of the EF provider of IBM: texts and binaries longer than 32672 (e.g. an unbounded
[String]) areCLOB/BLOBinstead ofvarchar(32672); the savepoints of EF inside a transaction carryON ROLLBACK RETAIN CURSORS, required by DB2
Installation
dotnet add package HyperDev.Data.DB2
Quick start
using System.Data;
using HyperDev.Data;
using HyperDev.Data.DB2;
DatabaseProviderFactories.Register(DB2Provider.Instance);
var connectionInfo = new DB2ConnectionInfo("Server=dbhost:50000;Database=SHOP;UID=db2user;PWD=secret");
var database = connectionInfo.GetDatabase();
var count = database.ExecuteScalar(CommandType.Text, "SELECT COUNT(*) FROM SHOP.CUSTOMERS");
For named connections in appsettings.json use "Provider": "IBM.Data.DB2.Client".
See HyperDev.Data for contexts, mapping and configuration.
Requirements
The IBM packages (Net.IBM.Data.Db2, IBM.EntityFrameworkCore) are distributed under the IBM proprietary license. Connecting to DB2 for z/OS or DB2 for IBM i also requires a DB2 Connect license.
Target frameworks
.NET 8.0, .NET 10.0
License
MIT, © Ivan Senatore, Wemake Informatica srl. Third-party dependencies keep their own licenses (Net.IBM.Data.Db2, IBM.EntityFrameworkCore: IBM proprietary license; Entity Framework Core: 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. |
-
net10.0
- HyperDev.Core (>= 1.2.5)
- HyperDev.Data (>= 1.2.9)
- IBM.EntityFrameworkCore (>= 10.0.0.100)
- Net.IBM.Data.Db2 (>= 10.0.0.200)
-
net8.0
- HyperDev.Core (>= 1.2.5)
- HyperDev.Data (>= 1.2.9)
- IBM.EntityFrameworkCore (>= 8.0.0.200)
- Net.IBM.Data.Db2 (>= 8.0.0.200)
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 |
|---|---|---|
| 1.2.9 | 69 | 11/27/2026 |
| 1.2.8 | 102 | 11/22/2026 |
| 1.2.7 | 97 | 11/20/2026 |
| 1.2.6 | 100 | 11/8/2026 |
| 1.2.5 | 91 | 11/8/2026 |
| 1.2.4 | 99 | 11/7/2026 |
| 1.2.3 | 108 | 11/4/2026 |
| 1.2.2 | 140 | 10/7/2026 |
| 1.2.1 | 161 | 9/7/2026 |
| 1.2.0 | 156 | 7/29/2026 |
| 1.1.5 | 144 | 7/27/2026 |
| 1.1.4 | 165 | 7/7/2026 |
| 1.1.3 | 166 | 3/19/2026 |
| 1.1.2 | 181 | 1/7/2026 |
| 1.1.1 | 292 | 12/10/2024 |
| 1.1.0.2 | 299 | 9/23/2024 |
| 1.1.0.1 | 230 | 9/20/2024 |
| 1.1.0 | 266 | 7/17/2024 |
| 1.0.8 | 261 | 7/10/2024 |
| 1.0.7.1 | 298 | 2/13/2024 |