5 Replies Latest reply: Oct 5, 2012 6:35 AM by Tridus RSS

    Entity Framework Code First: How to map a boolean

    963912
      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