Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Are you using Typed DataSets?
Message
From
24/07/2003 14:16:36
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
 
To
24/07/2003 13:07:48
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00813140
Message ID:
00813204
Views:
6
Thanks Bonnie,

Somehow, that all made sense to me <g>. I do have another question for you, since you are using a Web Service. Suppose you gave me access to your Web Service, and I am using a VS .NET client to access it, but you don't give me the source .xsd file. Would the WSDL for your Web Service contain the type information so I get a Typed DataSet on my end automatically?

>Joel,
>
>Well, first of all, we don't do SQL statements "on the fly". All of our data access is through Stored Procs that are called from the server-side DataAccess layer. All our data is passed around between the tiers via Typed DataSets. IOW, our UI communicates to the server-side stuff via a WebService which calls the BizObject, which calls the DataAccess object which returns a DataSet back through to the WebService which returns the DataSet's XML, which is turned back into a DataSet. Sounds complicated, but it's not really.
>
>~~Bonnie
>
>
>>Hi Bonnie,
>>
>>I could be wrong, but it seems like you wouldn't be able to create SQL statements "on the fly" when using Type DataSets. The SQL needs to be defined at design time rather than at runtime. I'm not thinking of parameters for conditions, but rather specifying the list of fields, ORDER BY, or GROUP BY clauses at runtime. I think you have the flexibility to do that with plain DataSets, but not Typed DataSets. Is that correct?
>>
>>Also, if you are doing a SELECT * FROM MYTABLE and the structure of the underlying table changes, you have to update the Typed DataSet, correct? That's why I think they are more maintenance.
>>
>>I do agree that the IntelliSense, etc. that comes with Typed DataSets is nice, so I'm wondering what most people are using. Thanks for your opinion.
>>
>>>Joel,
>>>
>>>Definitely Typed DataSets are better, IMHO. Why would you say that plain DataSets are more flexible? I'd think it would be just the opposite. Anyway, I like that you get better Intellisense and typing with the Typed DataSets. That's my opinion anyway. =)
>>>
>>>~~Bonnie
>>>
>>>
>>>>For those of you that have been using .NET for a while now: Do you find yourself using Typed DataSets, or sticking with plain DataSets for more flexibility and lower maintenance? I may start working more with .NET soon, and I'd like to know if a consensus has developed regarding this issue. Or is this one of those things like Remote Views vs. SQL Pass-Through?
>>>>
>>>>Thanks.
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform