Has anyone used .NET Core with DB2 and EF Core? We've tried to find compatible drivers, but none seem to exist. Has anyone found a way to use DB2 with .NET Core 3.0?
Thank you!
IBM have now released a new version 3.1.0.300 of IBM.EntityFrameworkCore on nuget that works with EF Core 3.1.
A couple of things I needed to do for it to work:
C:\Users\{YourUserNameHere}\.nuget\packages\ibm.data.db2.core\3.1.0.300\buildTransitive\clidriver\license
buildTransitive with buildI'm assuming the user has access to the IBM Passport Advantage, I don't know about trial licenses.
It was quite confusing to find where to download the license file, but I figured it out and will mention the steps here for anyone else who needs to do it:
Note: It's still possible to use the older library with .NET Core 3.1, as long as EF itself is not updated to the 3.1 version. The problem is compatibily with EF 3.1, not .NET Core 3.1. As long as updating the EF nuget package to a newer version is avoided, things will work just fine.
There is no core 3.0 or standard 2.1 support thanks to IBM's terrible .Net support. Supposedly an alpha driver will be available in March 2020 if you contact their support.
You can some of the conversation at this link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With