![]() |
VOOZH | about |
dotnet add package Devart.Data.DB2 --version 5.1.123
NuGet\Install-Package Devart.Data.DB2 -Version 5.1.123
<PackageReference Include="Devart.Data.DB2" Version="5.1.123" />
<PackageVersion Include="Devart.Data.DB2" Version="5.1.123" />Directory.Packages.props
<PackageReference Include="Devart.Data.DB2" />Project file
paket add Devart.Data.DB2 --version 5.1.123
#r "nuget: Devart.Data.DB2, 5.1.123"
#:package Devart.Data.DB2@5.1.123
#addin nuget:?package=Devart.Data.DB2&version=5.1.123Install as a Cake Addin
#tool nuget:?package=Devart.Data.DB2&version=5.1.123Install as a Cake Tool
👁 NuGet Version
👁 NuGet Downloads
👁 Windows
👁 macOS
👁 Linux
👁 Docker
👁 Amazon (AWS)
👁 Microsoft Azure
dotConnect for DB2 is a high-performance ORM enabled data provider for IBM DB2 that builds on ADO.NET technology.
The provider works with .NET Frameworks, .NET Core, .NET.
It supports a wide range of DB2-specific features, such as secure SSL and SSH connections, proxy server support, HTTP tunneling, full support for DB2-specific data types, and others. Package provides advanced Visual Studio integration and convenient visual component editors to simplify component tweaking.
More information at dotConnect for DB2.
Install-Package Devart.Data.DB2
For projects, using Entity Framework Core with DB2, install the Devart.Data.DB2.EFCore package.
The following table show which version of this package to use with which version of frameworks.
| Frameworks | Version support | |
|---|---|---|
| .NET | 10, 9, 8, 7, 6, 5 | |
| .NET Core | 3.1, 3.0, 2.2, 2.1, 2.0 | |
| .NET Framework | 4.8, 4.7, 4.6.2, 4.6.1 |
More information here
To help you get started quickly, here's a simple code example demonstrating how to connect to a DB2 database.
using Devart.Data.DB2;
class Program
{
static void Main()
{
string connectionString = "" +
"Server=127.0.0.1;" +
"User Id=TestUser;" +
"Password=TestPassword;" +
"Database=TestDatabase;" +
"Current Schema=TestSchema;" +
"License Key=**********";
using (DB2Connection connection = new DB2Connection(connectionString))
{
try
{
connection.Open();
Console.WriteLine("Connection successful!");
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
}
}
}
| Property | Meaning |
|---|---|
| Server | Specifies the hostname or IP address and port of the DB2 server (e.g., host:50000). |
| User Id | Specifies the user ID used to authenticate with the host. |
| Password | Specifies the password for the user ID. |
| Database | Specifies the DB2 database name to connect to. |
| Current Schema | Specifies the default schema to use after connecting. |
| License Key | Specify your license key in this parameter. |
For more detailed tutorials, API reference, and advanced examples, visit our Getting Started guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on Devart.Data.DB2:
| Package | Downloads |
|---|---|
|
Devart.Data.DB2.EFCore
dotConnect for DB2 is a high-performance ORM enabled data provider for DB2 that builds on ADO.NET technology. The provider works with .NET Frameworks 2.0+, .NET Core 2.0+, .NET 5+. More information at https://www.devart.com/dotconnect/db2/ License dotConnect for DB2 is available in several editions https://www.devart.com/dotconnect/db2/ordering.html The NuGet package initiates the retrieval of an activation key from the Devart website. This key is required to activate the product for a free trial. Key Features * Direct Mode: Allows your application to work with DB2 directly, without additional libraries. * ASP.NET Core: Supports ASP.NET Core Identity. * Performance: Uses many DB2-specific performance features and optimizations to ensure the highest performance. * Monitoring: Allows per-component tracing of database events with a free dbMonitor application. * Security: Supports various encryption SSL and SSH connections, etc. * Support and updates: Enjoy dedicated support team for prompt issue resolution and regular updates to keep your software running smoothly and securely. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.123 | 62 | 6/17/2026 |
| 5.1.100 | 217 | 5/25/2026 |
| 5.1.72 | 261 | 4/23/2026 |
| 5.1.35 | 246 | 3/6/2026 |
| 5.1.33 | 216 | 2/24/2026 |
| 5.0.0 | 369 | 12/19/2025 |
| 4.2.290 | 276 | 7/30/2025 |
| 4.2.235 | 357 | 4/25/2025 |
| 4.2.193 | 296 | 2/11/2025 |
| 4.2.191 | 253 | 1/15/2025 |
| 4.2.190 | 283 | 12/27/2024 |
| 4.1.104 | 305 | 11/8/2024 |
| 4.1.20 | 351 | 5/30/2024 |
| 4.1.10 | 388 | 1/18/2024 |
| 4.0.0 | 439 | 11/17/2023 |