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!

Entity Framework Code First: How to map a boolean

963912Oct 4 2012 — edited Oct 5 2012
Hello,

in our database they use number(1,0) to store booleans. Unfortunately I cannot map this to a bool in my EDM. This does not work:

Property( x => x.IsPoBox ).HasColumnType( "number" );

nor does:

Property( x => x.IsPoBox ).HasColumnType( "number(1,0)" );


I am sure that Oracle architects did think about how to store bool values in databases. Can someone enlighten me please?

Regards
daProgramma
This post has been answered by Tridus on Oct 4 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2012
Added on Oct 4 2012
5 comments
2,612 views