Subject | Re: Boolean data type in .NET provider. How? |
---|---|
Author | acegracely |
Post date | 2005-03-21T09:58:05Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
wrote:
> At 04:35 PM 18/03/2005 +0000, you wrote:Booleans. The
>
>
>
> >I have created a domain called D_Boolean which is currently an integer
> >field allowing only 0 or 1.
> >
> >When I try the following line in C#
> >
> >if( (bool)row["show_prices"] )
> >{
> >
> >
> >}
> >
> >It errors.
> >
> >How should I define my boolean data type in order for this to work?
>
> Well, Firebird doesn't have a Boolean data type. Various programming
> interfaces provide classes that allow your pseudo-Booleans to be
> interpreted and handled by your program as though they were
> proper place to ask your question re the .NET implementation wouldbe the
> firebird-net-provider list.Thanks Helen.
>
> ./hb