Re: What I saw at MS Launch
- From: "Kyle A. Miller" <kyle#REMOVE@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 01 Dec 2005 14:29:44 -0600
Trevor de Koekkoek wrote:
The DataSource components in .NET 2.0 are very cool and databinding in .NET 1 was also well beyond what Delphi VCL has had. The datasources allow you to abstract your databinding away without knowing your source. Source can be a database, flat file or object collection.
You can reference a TDataSource.DataSet without knowing what exactly type of TDataSet is attached. You could write a TFlatFileDataSet or TObjectDataSet, connect a TDataSource, and the consumer wouldn't know otherwise.
In regards to .NET and data binding, Eco and Bdp provide a greater level of abstraction. They do a better job of separating a data's source from its consumption.
Microsoft says...
"There are several new data source controls in ASP.NET 2.0, such as the SqlDataSource, ObjectDataSource, XmlDataSource, AccessDataSource, and SiteMapDataSource (shown in Figure 1). They all can be used to retrieve data from their respective types of data sources and can be bound to various data-bound controls."
Correct me if I am wrong here. So you bind a DataSource of a specific type to the controls. See a problem? VCL developers have been down this road. Let's say you bind your controls to SqlDataSource. Great. Now you've written your own object persistence framework, and you want to bind to your objects now. Oops. Now you have to change all references of SqlDataSource to ObjectDataSource and change the control bindings.
To quote Microsoft...
"One of the coolest features of the GridView and the other data-bound controls is that once they are set up, they can be bound to either an ObjectDataSource control or a SqlDataSource control by simply changing a single property."
Yea, that's real cool. Sure, it's a single property, but on how many grids and other UI controls will I have to rebind? Bah. And what about those SqlDataSource components? I have to go replace them.
said, I concur that Delphi did mark the way well with it's concept of zero code UI connections and I'm not one of those who doesn't like Delphi's data-aware paradigm. You have to go to the oodesign group to find that group :)
I agree. See above. I think OO design folks didn't have a problem with data binding in general. The problem was what it was binding to. You can paint yourself into a corner if you are not careful. I always try to take the path of least reference. MyDataSource.DataSet.FieldByName() is better than MyTQuery.FieldByName().
.
- Follow-Ups:
- Re: What I saw at MS Launch
- From: Trevor de Koekkoek
- Re: What I saw at MS Launch
- References:
- What I saw at MS Launch
- From: Kyle A. Miller
- Re: What I saw at MS Launch
- From: Trevor de Koekkoek
- What I saw at MS Launch
- Prev by Date: Re: Shipping?
- Next by Date: Re: Benefits of dual monitor system
- Previous by thread: Re: What I saw at MS Launch
- Next by thread: Re: What I saw at MS Launch
- Index(es):
Relevant Pages
|