Subject Re: Boolean data type in .NET provider. How?
Author acegracely
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
> At 04:35 PM 18/03/2005 +0000, you wrote:
>
>
>
> >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
Booleans. The
> proper place to ask your question re the .NET implementation would
be the
> firebird-net-provider list.
>
> ./hb

Thanks Helen.