IBM Data Server Drivers (Db2 Connect Client)

 View Only

Getting started with IBM .NET Provider for .NET Core , .NET 5 and .NET 6

By Michelle Betbadal posted Wed April 29, 2020 03:26 PM

The new IBM .NET provider for .NET Core and .NET 5 / .NET 6 is for developing applications using MS .NET Core/.NET 5 / .NET 6 connecting to IBM data servers(namely LUW, IBM i, zOS and Informix)  and applications which run on Windows, Linux and MacOs. The IBM Data Server Providers  packages are available for download in the NuGet repository.

What is new in EF and .NET 6 version
  • In EntityFramework , fix for DateTime casting while using ThenInclude() method in LINQ Query is included.
  • In .NET 6, fix for the memory corruption issue which leads to segmentation faults on Linux environments is included.

What is new in version

  • SAVEPOINT support in Transactions
  • Asynchronous support in Entity Framework.

What is new in version

  • Critical fixes to previously reported issues
  • Fix to license file issue when connecting from cloud environment to on premise database servers.

What is new in version   
  • Support for MS .NET Core 3.1
  • Code first support for Db2 for z/OS®
  • .NET Core driver on Microsoft Azure
  • Leverage new features of .NET core 2.1
  • .NET Core Driver support for Microsoft Windows Nano Server
  • Db2 .NET Core support on AWS

Instructions for downloading and using the package

    The following are the prerequisites for using the package

  • Any other IBM DB Drivers should not be present in the machine.
  • Path/LD_LIBRARY_PATH needs to be updated to include the package driver path.

     Apart from this, the download links and other commonly asked questions are listed in the Frequently Asked Questions. In cases where diagnostics needs to be collected for any issue, please follow the instructions on tracing.


Points to remember for using this package:

  • The license needed for connecting to DB2 databases remains the same as that of the DB2Connect for IBM databases.
  • There are separate packages for Windows and Linux and Mac.
  • Most of the features of MS ADO.NET like Connection, Command, DataReader and server specific data types are supported.
  • The ADO.NET features which are excluded in MS .NET Core are not available in IBM .NET Core.


Supported platforms and OS:

  • Windows 64-bit
  • Linux AMD64
  • macOS[new]

Supported IBM database servers

  • zOS
  • LUW including IBM dashDB
  • IBM I
  • Informix

Examples and samples

  • Writing a sample Console application using IBM .NET provider for .NET Core and using IBM databases. 
  • Writing a sample MVC application using IBM .NET provider for .NET Core and using IBM databases. 
  • Creating Azure Functions using IBM .NET Provider for .NET Core
  • Deploy a .NET Core or .NET 5 application on Red Hat Openshift environment.
  • Writing and hosting a .NET Core application using IBM dashDB on Bluemix

 VS2017 and VS2019 Support

          Creating .NET Core applications targeting DB2 databases using VS2017 and VS2019 is also supported. Please follow the Sample IBM DB application using VS2017 to create a sample test application with VS2017 as an example. Similar steps are applicable to VS2019 also.


Other features which are not yet there in this release

    Some of the features are not yet supported in this release. The Limitations page lists it.


Last updated On 18th October 2022



Fri August 19, 2022 12:09 PM

Can you please add/include guidance on how to use the driver in MVC/Razor with calling stored procedures? TIA.

Thu June 02, 2022 01:57 AM

Hi Daniel, the Db2 .NET packages are for Win x64 and AMD64 on Linux. Support is there for macOS also and packages with -osx in NuGet are for macOS.

Wed May 04, 2022 09:44 AM

Is this x86 architecture only or does it support arm64 on unix/linux/Mac?

Fri July 17, 2020 03:43 AM

Hi Helmet,
 we stopped publishing to NuGet repository and latest packages are available only on IBM downloads.
Please refer to following blog for download information


Thu July 16, 2020 02:27 AM

NuGet repository is not up-to-date.

Tue June 30, 2020 05:10 PM

The links to the sample applications do not work.