With the repeated absence of an official EDM-EF mapping from Oracle, DevArt and DataDirect have custom Oracle connection provider levels that you can buy. There are also open source versions in CodeProject that implement EDM for EF w / Oracle. I assume that you are using one of them.
To solve your question, you need to change the ProviderManifest implementation to return the corresponding .NET type when calling GetEdmType() . The problem is that this method passes you an Oracle type and expects you to return a .NET type that understands EF (it understands all primitives, including bool). Unfortunately, it is not advisable to display CHAR(1) in Boolean, since in principle you can use other CHAR(1) columns that are not bools.
A workaround to this problem is to create a user-defined type (JKBOOL, say :) that maps to CHAR(1) - you will have to change the tables to change CHAR(1) to JKBOOL . Now you can safely map JKBOOL to System.Boolean in GetEdmType() .
source share