Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ODAC Beta 3 mapping number(1,0) to Boolean in Entity Framework

nswandelNov 9 2011 — edited Jun 28 2012
After moving to Beta 3 I have an issue with the mapping of number(1,0) to Boolean. I have modified my app.config as per the Readme / Release Notes to include the following right after </connectionStrings>

<oracle.dataaccess.client>
<settings>
<add name="bool" value="edmmapping number(1,0)" />
</settings>
</oracle.dataaccess.client>

It seems the app.config directive is being ignored since I get the message for every occurrence of such a mapping similar to:

Error 2019: Member Mapping specified is not valid. The type 'Edm.Boolean[Nullable=False,DefaultValue=]' of member 'IS_FOREIGN_KEY' in type 'Model.M_ATTRIBUTE_FK_MAPPING' is not compatible with 'OracleEFProvider.number Nullable=False,DefaultValue=,Precision=1,Scale=0]' of member 'IS_FOREIGN_KEY' in type 'Model.Store.M_ATTRIBUTE_FK_MAPPING'.

As this seems to be the recommended resolution in any related forum threads I find, any further suggestions on a resolution or an approach to troubleshooting this would be much appreciated!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2012
Added on Nov 9 2011
27 comments
5,666 views