'EF Core can't connect to Oracle ('licensekey' is an invalid connection string attribute), but Dapper can

We have a project that was recently migrated from .NET Core 3 to .NET 6. It only had Dapper at first but now it also has EF Core. They both use the same connection string. Dapper's connection works normally but EF Core throws error

 OracleCompositeMemberTranslator.CreateDbConnection() :  System.ArgumentException: 'licensekey' is an invalid connection string attribute

Thing is we use the licensekey argument in all of our other connection strings (both dapper and EF Core) and they work fine. I tried removing it here but that crashes both dapper and EF Core. I'm guessing the issue might be with .NET 6 but I haven't found any documentation about it. Any ideas?



Solution 1:[1]

The issue was with using incorrect Nuget for EF Core. I needed Devart.Data.Oracle.EFCore

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nika