[Mono-list] ADO and mono

Gregory Junker gjunker@shockwaveaudio.com
Tue, 19 Oct 2004 21:05:24 -0400


The DataSet stores zero or more tables in the Tables collection. There is no
Table property, so you access the first (most of the time, only) table via
Tables[0]. It's a .NET idiom.

Greg
----- Original Message ----- 
From: "Eric Damron" <edamron@spamcop.net>
To: "mono-list" <mono-list@lists.ximian.com>
Sent: Tuesday, October 19, 2004 8:48 PM
Subject: Re: [Mono-list] ADO and mono


>
> Thanks for the reply Morten.  I guess what confused me was that the
> author used the same name for the recordset return table as the table he
> was querying.
>
> I'm still a little confused because the next thing he does is:
>
> DataTable dataTable = ds.Tables[0];
>
> If a single recordset table is returned isn't the [0] redundant?  How
> can one return more than a single recordset table?
>
> Thanks
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list