EntityFramework.IBM.DB2 6.5.0

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

IBM Data Server EF 6 Provider

Entity Framework 6 provider for .NET applications accessing IBM Db2 data servers.

NuGet

This package (EntityFramework.IBM.DB2 6.5.0) provides Entity Framework 6.5 support for IBM Db2 and targets .NET Framework 4.6.1+ and .NET Standard 2.1.

For .NET Framework apps, support is Windows-based (IBM Db2 Data Server Driver in GAC). For .NET Standard 2.1 apps, platform support depends on the availability of the IBM Db2 ADO.NET driver package for your OS/runtime.


Prerequisites

Common

Requirement Version Details
Entity Framework 6.5+ Installed automatically as a package dependency
Entity Framework 6 Tools for Visual Studio VS 2017 or later (built-in). For VS 2012/2013, download separately. Provides EDM designer and wizard support

.NET Framework 4.6.1

Requirement Version Details
IBM Db2 Data Server Driver 11.5.9.0 or later Required in the GAC. Download
.NET Framework 4.6.1+ Included with Windows or via installer

.NET Standard 2.1

For applications targeting .NET Standard 2.1, The IBM Data Server provider NuGet package for Windows is resolved and installed as a transitive dependency of this package during restore.

Operating System Package Minimum Version
Windows Net.IBM.Data.Db2 10.0.0.400

Getting Started

.NET Framework (App/Web.config)

No additional code-based configuration is required. The provider registers automatically via the standard <entityFramework> configuration section.

.NET Standard 2.1 or .NET 8+ (Code-Based Configuration)

Applications targeting .NET Standard 2.1 or .NET 8.0+ require code-based EF6 provider configuration:

public class DB2EF6CodeBasedConfig : DbConfiguration
{
    public DB2EF6CodeBasedConfig()
    {
        SetProviderFactory("IBM.Data.Db2", DB2Factory.Instance);
        SetProviderServices("IBM.Data.Db2", DB2ProviderServices.Instance);
    }
}

Note: Update the provider keyword to IBM.Data.Db2 in your connection string.

Apply the configuration class so EF6 discovers it at runtime:

using System.Data.Entity;

[DbConfigurationType(typeof(DB2EF6CodeBasedConfig))]
public class MyDbContext : DbContext
{
  public MyDbContext(string nameOrConnectionString)
    : base(nameOrConnectionString)
  {
  }
}

Connection string provider invariant name example:

providerName="IBM.Data.Db2"

Known Limitations

# Description Workaround
1 EDM creation may fail when the project targets the x64 platform (EF6 designer limitation). Move the EF model to a separate Any CPU project referenced by the x64 startup project, or target Any CPU directly.

Requesting Support

Please reach out to us for any issues in using this package:

  1. IBM Technical Support:
    Open a Support Case

  2. Contact us via NuGet:
    Contact Package Owners


License

See the license terms included with the NuGet package.

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 was computed.  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. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EntityFramework.IBM.DB2:

Package Downloads
System.Data.DB2.EntityFramework.Migrations

Entity framework 6.x migration provider for DB2

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.5.0 117 10/29/2026
6.4.1 73,229 4/29/2022
6.4.0 46,946 12/24/2020

This release adds support for Microsoft Entity Framework 6.5.2 and targets both .NET Framework 4.6.1 and .NET Standard 2.1 on Windows.