|
|
|
start date: Wed, 11 Jul 2007 02:06:48 -0700,
posted on: microsoft.public.dotnet.framework.adonet
back
| Thread Index |
|
1
pamela fluente
|
|
2
Frans Bouma [C# MVP]
|
|
3
pamela fluente
|
value NOTHING can appear in the Object() array filled by the OleDBDataReader ?
I am using an OledbDataReader to read each record into an array of
objects, as usual.
My question is:
is it ever possible that one of the values contained in the array be
Nothing.
I have never seen it happen and I would believe it is impossible.
Can anyone confirm that ? And in case what is the reason ?
-P
Date:Wed, 11 Jul 2007 02:06:48 -0700
Author:
|
Re: value NOTHING can appear in the Object() array filled by the OleDBDataReader ?
pamela fluente wrote:
>
>
> I am using an OledbDataReader to read each record into an array of
> objects, as usual.
>
>
> My question is:
>
> is it ever possible that one of the values contained in the array be
> Nothing.
>
> I have never seen it happen and I would believe it is impossible.
>
> Can anyone confirm that ? And in case what is the reason ?
>
>
> -P
It's my understanding that it can't happen, NULL values are always
specified as DBNull.Value.
In general, use the native ADO.NET providers instead of oledb to be
sure.
FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Date:Thu, 12 Jul 2007 01:22:28 -0700
Author:
|
Re: value NOTHING can appear in the Object() array filled by the OleDBDataReader ?
On 12 Lug, 10:22, "Frans Bouma [C# MVP]"
wrote:
>
> It's my understanding that it can't happen, NULL values are always
> specified as DBNull.Value.
>
> In general, use the native ADO.NET providers instead of oledb to be
> sure.
>
> FB
>
> --
> ------------------------------------------------------------------------
> Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
> LLBLGen Pro website:http://www.llblgen.com
> My .NET blog:http://weblogs.asp.net/fbouma
> Microsoft MVP (C#)
> ------------------------------------------------------------------------- Nascondi testo tra virgolette -
>
> - Mostra testo tra virgolette -
Thanks Frans,
I wanted to make sure that programmatically I only need to check for
dbNull values.
So far I have never neen a Nothing value. But perhaps did not try
hard enough.
I was wondering if perhaps it is actually impossible for some
technical reason (OleDB implementation).
I do have seen however an "Object" type (which is somehow curious).
So I was wondering whether it could also
spit a Nothing value.
BTW I am considering OleDb (and only that) because I am doing a
cross work among many different platforms.
-P
Date:Thu, 12 Jul 2007 11:15:26 -0700
Author:
|
|
|