Boaz,
As Ignacio stated, the DataSet is not implemented internally as one large
XML document.
It is implemented as a collection of DataTable objects, DataTables are
implemented as a collection of DataColumn & DataRow objects. DataRow objects
are implemented as an array of System.Object objects.
Remember when you put value types into a Sytem.Object you need to box &
unbox them, so there is a performance hit there. Also the fact the DataRow
has an array of them, there is a second hit.
If by "custom developed objects" you mean a formal domain model, I would
expect the formal domain model to be more performant as it should be doing
less boxing & unboxing and have fewer collections.
David Sceppa's book "Microsoft ADO.NET - Core Reference" from MS Press
covers all aspects of DataSets and how they are organized.
Martin Fowlers book "Patterns of Enterprise Application Architecture" from
Addison Wesley provides a number of patterns for getting data from a
database to & from your domain model & patterns on using DataSets verses
domain models.
Rockford Lhotka's book "Expert One-on-One Visual Basic .NET Business
Objects" from APress (formally from Wrox) provides the CSLA.NET framework
which gives you the flexibility of a DataSet while defining a formal Domain
Model.
Hope this helps
Jay
"Boaz Ben-Porat" <bo***@datapharm.dk> wrote in message
news:eC**************@TK2MSFTNGP12.phx.gbl...
Thanks Jeffry
My question is:
Is Reading and manipulating data in DataSet more effective or less
effective then reading and mnipulating in custom developed objects. If DataSet IS
implemented as one large XML document in RAM then I suspect it is NOT the
most effective structure. Am I right ?
TIA
Boaz Ben-Porat
DataPharm a/s
Denmark
"Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> skrev i en meddelelse
news:vx**************@cpmsftngxa06.phx.gbl...
Hi Boaz,
The dataset class can be easily display as a xml graph, you can just
display it like this:
Console.WriteLine( ds.GetXml() );
Also, dataset can manipulate the xml file freely by writexml method
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no
rights.
--------------------
| From: "Boaz Ben-Porat" <bo***@datapharm.dk>
| Subject: How is DataSet class implemented
| Date: Wed, 1 Oct 2003 17:19:16 +0200
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <OC**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 195.215.64.74
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:188393 | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I heard somewhere that the DataGrid class is implemented as a XML
graph in | memory. Is this true ?
|
| TIA
| Boaz Ben-Porat
| DataPharm a/s
| Denmark
|
|
|