[Mono-list] DataRelationCollection
Alan Tam
Tam@SiuLung.com
Mon, 17 Feb 2003 17:45:24 +0800
I just noticed that DataSetRelationCollection and DataTableRelationCollection
is an internal inner class inside abstract class DataRelationCollection.
However it is NOT present in any form in MS .NET Framework docs.
I've searched through the ChangeLog and seems it has been controversial over
ages, being modified a few times. I just wonder should we change it back to be
an internal class (merge into DataRelationCollection.cs), or leave it currently
in a separate file?
Regards,
Alan
----- Original Message -----
From: "Steinar Herland" <steinar.herland@gecko.no>
To: "Mono-List" <mono-list@ximian.com>; <Tam@SiuLung.com>
Sent: Thursday, February 06, 2003 1:33 AM
Subject: SV: [Mono-list] DataRelationCollection
Running this on MS.NET:
System.Data.DataSet ds = new System.Data.DataSet();
System.Data.DataRelationCollection drc = ds.Relations;
Console.WriteLine(drc.GetType().FullName);
Returns:
System.Data.DataRelationCollection+DataSetRelationCollection
Which means DataSetRelationCollection is a public class defined inside
DataRelationCollection
brgds, Steinar
-----Opprinnelig melding-----
Fra: Alan Tam [mailto:Tam@SiuLung.com]
Sendt: 5. februar 2003 16:50
Til: Mono-List
Emne: Re: [Mono-list] DataRelationCollection
> Its most likely a private or internal class of DataSet?
I have no idea as well. Just no idea why it has to be abstract. The few
methods
do not seem too special. But since I noticed something called
System.Data.DataTableRelationCollection, I suspect there is something
called
System.Data.DataSetRelationCollection (not even an inner class of
DataSet).
However, they (both DataTableRelationCollection and
DataSetRelationCollection)
are not observed anywhere in Microsoft's documentations.
> Anyways, someone started an implementation called
> DataTableRelationCollection to be internal. It's at
> mcs/class/System.Data/System.Data/DataTableRelationCollection.cs
Yes, I was referring to it when I write this e-mail. It does not matter
at all
it is internal or not, but that since it is abstract it cannot be
instantiated.
This maybe the root of the problem that we never succeed in implementing
the
DataRelation class.
> It would be returned via the Relations property in a DataSet.
> If you look in DataSet.cs, you will see source code commented for it.
> It was never able to compile though. So, maybe you could get it to
work?
:-)
Yes, I suppose DataSet would either create an instance in the
constructor, or
in property get of the Relations, a new instance of the
DataRelationCollection.
It seems to me that implementing DataRelation is not an easy task. It
involves
many missing code along many System.Data classes, including DataSet,
DataTable,
DataRow, etc.
Regards,
Alan
----- Original Message -----
From: "Daniel Morgan" <danmorg@sc.rr.com>
To: "Alan Tam" <Tam@siulung.com>; "Mono-List" <mono-list@ximian.com>
Sent: Wednesday, February 05, 2003 11:40 PM
Subject: RE: [Mono-list] DataRelationCollection
Its most likely a private or internal class of DataSet?
Anyways, someone started an implementation called
DataTableRelationCollection to be internal. It's at
mcs/class/System.Data/System.Data/DataTableRelationCollection.cs
It would be returned via the Relations property in a DataSet.
If you look in DataSet.cs, you will see source code commented for it.
It was never able to compile though. So, maybe you could get it to
work? :-)
-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Alan Tam
Sent: Wednesday, February 05, 2003 10:29 AM
To: Mono-List
Subject: [Mono-list] DataRelationCollection
Dear All,
This maybe a silly question. I noticed that
System.Data.DataRelationCollection
is abstract (with a few abstract members). Then where is the concrete
class
that it really stored? I've looked through the .NET Framework SDK
documentation
but still cannot find a known subclass for DataRelationCollection.
Anyone knows
what it is?
Regards,
Alan
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list