Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 'OracleInternal.Common.ODTSettings.m_bUseLongIdentifiers' While adding migration

When I add a code-first EF migration, I get the following error:

Field not found: 'OracleInternal.Common.ODTSettings.m_bUseLongIdentifiers'.

and the migration is not created.

I'm targeting Oracle 12c and verified my connection strings and all the configuration. The same configuration works perfectly in another project.

like image 848
Mohamed Emad Avatar asked Dec 24 '22 13:12

Mohamed Emad


1 Answers

Apparently the latest stable ODP.net drivers has a bug, you need to down grade your ODP.net drivers to the previous stable version.

Try the following packages;

Install-Package Oracle.ManagedDataAccess -Version 12.1.22

Install-Package Oracle.ManagedDataAccess.EntityFramework -Version 12.1.22

like image 183
m3m0 Avatar answered Jan 26 '23 00:01

m3m0