Net.IBM.Data.Db2 10.0.0.400

dotnet add package Net.IBM.Data.Db2 --version 10.0.0.400
                    
NuGet\Install-Package Net.IBM.Data.Db2 -Version 10.0.0.400
                    
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="Net.IBM.Data.Db2" Version="10.0.0.400" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net.IBM.Data.Db2" Version="10.0.0.400" />
                    
Directory.Packages.props
<PackageReference Include="Net.IBM.Data.Db2" />
                    
Project file
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 Net.IBM.Data.Db2 --version 10.0.0.400
                    
#r "nuget: Net.IBM.Data.Db2, 10.0.0.400"
                    
#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 Net.IBM.Data.Db2@10.0.0.400
                    
#: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=Net.IBM.Data.Db2&version=10.0.0.400
                    
Install as a Cake Addin
#tool nuget:?package=Net.IBM.Data.Db2&version=10.0.0.400
                    
Install as a Cake Tool

About

This package provides IBM Data Server connectivity for .NET 8.0 and later.

Key Features

Support for Microsoft ADO.NET specifications as well as IBM Data Server features.

How to use

Use package manager to add package to the project, build it and deploy it as any other .NET NuGet package based deployment.
In cases where Db2Connect license is needed, the license file needs to be copied to clidriver/license folder as detailed here:
https://community.ibm.com/community/user/blogs/vishwa-hs1/2020/07/12/db2-net-packages-download-and-configure

Main Types

All ADO.NET specification types.

Additional Documentation

IBM Information center for class level documentation  
    https://www.ibm.com/docs/en/db2/11.1?topic=namespaces-ibmdatadb2

What's New

v10.0.0.400
    - Package compatibility:
        � The Windows `Net.IBM.Data.Db2` package now targets .NET Standard 2.1 and .NET 10. Use the .NET Standard 2.1 target with .NET 8 or later, or another runtime that supports .NET Standard 2.1; use the .NET 10 target for .NET 10 applications.
        � Non-Windows packages (`-lnx`, `-osx`, `-zlnx`, and `-ppc`) continue to target .NET 10 only.
        � The `TestConn` utility is included in the `tools/` folder and requires the .NET 10 or later runtime.
    - Fixes:
        � KI DT496502 : Fixed an issue where stored procedures using array input parameters could insert fewer rows than expected with Db2 .NET 8 and later provider versions.
        � Fixed an issue that could cause concurrent stored procedure executions to return corrupted output parameter values. This issue affected `Net.IBM.Data.Db2` package versions later than 8.0.0.200.
    - Improvements and component updates:
        � Improved data-length handling for parameters and query results.
        � Updated the bundled CLI libraries. Windows packages now include `db2clio.dll`; non-Windows packages include the platform-specific `libdb2o` library. Diagnostic messages may refer to these names instead of `db2app64` or `libdb2`.
        � Updated the CLI driver to version 12.1.5.0 CSB 94858.

 v10.0.0.300
    � CLI driver upgrade to 12.1.5.0 CSB 89304.

v10.0.0.200
    � CLI driver upgrade to 12.1.4.0.

v10.0.0.100
    � Added support for .NET 10.0.
    � The ReleaseObjectPool() method is deprecated and should no longer be used. Use of this method may result in memory corruption in some cases.

v9.0.0.400
    � CLI driver upgrade to 12.1.2.0 Special Build 67327 
    � The Support of LockTimeout keyword : The LockTimeout keyword setting specifies the number of seconds, that an application or a statement will wait to acquire a lock on a resource before the waiting operation is canceled and an error is returned. It mainly prevents applications from waiting indefinitely for a locked resource, which could lead to application hangs or deadlocks if not handled. 
        The LockTimeout can be set via DB2Connection.ConnectionString property's keyword, DB2ConnectionStringBuilder property, db2dsdriver.cfg config file.
        Values supported for LockTimeout keyword: 
            -1 : Often indicates an indefinite wait, meaning the application will wait until the lock is granted or a deadlock occurs.
            0  : Indicates no waiting; if the lock cannot be obtained immediately, an error is returned. 
            Positive integer <= 32767 : Specifies the number of seconds to wait before timing out.
        Default setting:
            Timeout is turned off (-1), with the application waiting for a lock until either the lock is granted or deadlock occurs.

V9.0.0.300
    � CLI driver upgrade to 12.1.2.0 
    � SSLClientHostnameValidation keyword is used to control the hostname validation behavior for Db2 .NET applications. Its default value is changed to Basic from OFF.
    � KI DT421871 : Client special registers are not replayed when using WLM if CONDBAT limit is reached on Z/OS.

V9.0.0.200
    � CLI driver upgraded to 12.1.1.0 CSB 54960, please use Db2Connect 12.1 license for this package.
    � Support for QueryPrefetch keyword enables prefetching of multiple query blocks for a forward only blocked cursor.
    � KI DT421709 : On Linux platform, stored procedure call failed with SQL0902 error when stored procedure used scrollable cursor to fetch data.
    � KI DT196972 : DB2DataReader.GetValue() method should return boolean value(True/False) for boolean column data type.

Related Packages

� Net.IBM.Data.Db2 : Windows x64
� Net.IBM.Data.Db2-lnx : Linux AMD64
� Net.IBM.Data.Db2-osx : Mac ARM64 M1/M2/M3
� Net.IBM.Data.Db2-zlnx : Linux on IBM Z (Linux s390x)
� Net.IBM.Data.Db2-ppc : Linux ppc64le

Requesting Trial license

Use contact Owner option in NuGet repository for requesting Db2Connect trial license.
Note: If you are upgrading from any older Db2 .Net NuGet packages to .Net v8.0.0.400 and above, please use v12.1 Db2Connect license.

To verify connection with this package, may execute TestConn utility from Application bin path:

Usage : TestConn "<ConnectionString>" -f "<FileName>" -v

Requesting support

Please reach out to IBM Tech support for any issues in using this package:
https://www.ibm.com/mysupport/s/?language=en_US
Product 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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.
  • net10.0

    • No dependencies.

NuGet packages (19)

Showing the top 5 NuGet packages that depend on Net.IBM.Data.Db2:

Package Downloads
FluentMigrator.Runner.Db2

FluentMigrator is a database migration framework for .NET written in C#. The basic idea is that you can create migrations which are simply classes that derive from the Migration base class and have a Migration attribute with a unique version number attached to them. Upon executing FluentMigrator, you tell it which version to migrate to and it will run all necessary migrations in order to bring your database up to that version. In addition to forward migration support, FluentMigrator also supports different ways to execute the migrations along with selective migrations called profiles and executing arbitrary SQL.

IBM.EntityFrameworkCore

IBM Data Server provider for Entity Framework Core. For more details, please visit: https://community.ibm.com/community/user/blogs/vishwa-hs1/2020/07/12/db2-net-packages-download-and-configure

EntityFramework.IBM.DB2

IBM Data Server EF 6 Provider for Entity Framework 6 applications accessing IBM Data Servers.

FizzCode.EtLast.AdoNet.Db2

ADO.NET extension for EtLast ETL (Extract, Transform and Load) library

RG3.DO.DB2

1、【RG3.DO.DB2】(可配置化,标准化,灵活配置,集成百度、腾讯、阿里、短信通等巨头接口,可脱离开发环境,集成nodejs中间件、统一认证中心) 2、以Rg3.开头且类继承 IService 或 IRepository的在Starup里面不用注入,案例如下 3、public class ListRepository : IRepository 4、public class ListService : IService 5、使用请到github获取 RG3.PF.WebApp.Host 6、6.0.0.77开始,nodeserice迁移到RG3.PF.PinYinScriptEngineCliWrap

GitHub repositories (6)

Showing the top 6 popular GitHub repositories that depend on Net.IBM.Data.Db2:

Repository Stars
DotNetNext/SqlSugar
.Net aot ORM SqlServer ORM Mongodb ORM MySql 瀚高 Postgresql ORM DB2 Hana 高斯 Duckdb C# VB.NET Sqlite ORM Oracle ORM Mysql Orm 虚谷数据库 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET9 ORM .NET8 ORM ClickHouse ORM QuestDb ,TDengine ORM,OceanBase ORM,GaussDB ORM,Tidb ORM Object/Relational Mapping
testcontainers/testcontainers-dotnet
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
fluentmigrator/fluentmigrator
Fluent migrations framework for .NET
linq2db/linq2db
Linq to database provider.
Raiffeisen-DGTL/ViennaNET
Framework for quickly creating enterprise microservices on .NET https://habr.com/ru/company/raiffeisenbank/blog/494830/
NewLifeX/NewLife.XCode
20 年演进的 .NET 高性能数据中间件,聚焦极致性能、海量数据、自动建模/迁移、多级缓存、自动分表分库,支持 MySQL/SQLite/SqlServer/Oracle/Postgresql/达梦 等
Version Downloads Last Updated
10.0.0.400 947 10/29/2026
10.0.0.300 11,627 9/28/2026
10.0.0.200 75,832 5/21/2026
10.0.0.100 34,448 3/12/2026
9.0.0.400 292,269 10/30/2025
9.0.0.300 2,381,502 7/18/2025
9.0.0.200 54,436 4/30/2025
9.0.0.100 28,147 12/20/2024
8.0.0.500 24,300 7/9/2025
8.0.0.400 64,926 4/4/2025
8.0.0.310 37,253 2/21/2025
8.0.0.300 300,217 8/30/2024
8.0.0.200 217,554 2/8/2024
7.0.0.400 81,379 2/7/2024
6.0.0.500 51,373 4/16/2024
Loading failed

IBM Data Server provider support for .NET 10. For more details, please visit: https://community.ibm.com/community/user/blogs/vishwa-hs1/2020/07/12/db2-net-packages-download-and-configure