Entity Framework Code First: How to map a boolean
963912Oct 4 2012 — edited Oct 5 2012Hello,
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