SubSonic Forums
All Your Database Are Belong To Us

Tinyint field is generated as bool

Latest post 09-08-2008 7:26 AM by KillerTiger. 2 replies.
  • 09-05-2008 7:31 AM

    Tinyint field is generated as bool

    Hi Guys,

    I executed the subsonic code gecneration in a table that has a field type as tinyint.

    My code was generated as bool insted of byte.

    Do anyone knows why? Is this a Bug?

     

    Thanks

    --

    []s,

    Marcus

    Filed under: ,
  • 09-05-2008 11:37 PM In reply to

    • ranomore
    • Top 10 Contributor
    • Joined on 11-05-2007
    • Salt Lake City
    • Posts 317

    Re: Tinyint field is generated as bool

    Reply |Contact |Answer

    Subsonic treats bit and tinyint the same. From this link, it looks like bit was a tinyint in mysql, for a while anyway. Maybe the real issue is a valid type in c# that translates to tinyint?

  • 09-08-2008 7:26 AM In reply to

    Smile [:)] Re: Tinyint field is generated as bool

    Hi, Thanks. You're right Thank's Again.
Page 1 of 1 (3 items) | RSS