OBSOLETE CONTENT
The author of
this post has determined that this content is obsolete. Use at your own
risk! Blog posts are a point-in-time snapshot of the blogger's thinking
and should not be assumed to represent this blogger's current opinions.
This post was left up for historical purposes.
Yesterday afternoon, I listened to the latest version of DNR, with DonXML. Good show as usual. I especially liked hearing those South Jersey accents. I have family there and I think the way they talk is cool. I've been saying “youse guys” all day. Rory, I hope you feel better.
Something that they discussed in the show has been bugging me, because it's a topic that hits me close to home. DonXML was asked, “What's the problem with Typed DataSets?” His answer was, generally, that there's no good way to add Business Rules to typed DataSets. See his post here for his full justification. One of the things I totally agree with is that the XSD to Typed DataSet class mechanism in .NET could be more open. I mean, somewhere in there, there's got to be an XSLT transformation involved, right? Why isn't this transformation file open for extensibility? Now, I can guess that it's just not that simple, and the developers choose to instead opt for the extensibility by sub classing a Typed DataSet model instead. But then my question becomes, if you want to extend the DataSet, why not subclass it? Isn't this a good way to add Business Rules if you needed to?
But an even bigger question to me is, why would anyone want to add business rules to a common tier component like a DataSet? I mean, isn't this what the business tier is for anyhow? I'm wondering if I've fundamentally misunderstood something.
I bring this all up because I LOVE using Typed DataSets. Especially the DataAdapter. Without the DataAdapter, I just don't know what I'd do. Without Typed DataSets, the DataAdapter isn't of much use to me. Can someone help me understand this argument?
-B