Well, "Mr. or Ms. News", I'm of mixed mind when it comes to strongly typed
(or just "typed") DataSets. I think they are a lot of trouble to create.
They require quite a bit of forethought in that you have to know exactly
what they are going to look like at design time. VS.NET will help construct
the XSL and code (quite a bit of it), but this time does not count in the
overall _runtime_ performance hit. But all of this has to be repeated if
the structure changes.
When you instantiate the DataSet, this pre-generated code is executed, and
now you get to refer to the typed DataSet using more precise addressing
which is dramatically faster to execute. However, there is a performance
penalty at instantiation time and, if the Dataset is only expected to live
for an instant (as in an ASP page), I don't see the advantage. Sure, it
takes longer to refer to Tables and "Items" in an untyped DataSet (up to an
order of magnitude longer), if you simply use Enumerations to map the
columns, you can get within a few dozen ticks of strongly typed performance.
This means you should not use "strings" to refer to Tables or Items in your
DataSet--use ordinals.
hth
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________