ObjectDataSources Don't Work with Typed DataSets

According to this post (this highlights my belief that MS is discouraging DataSets enough though they are using them everywhere (e.g. inside DataSources)).  SInce Typed DataSets don't work out of the box with ObjectDataSources, we are left with three uncomfortable solutions:

  • Ditch them and write Business Objects even in small apps
  • Use SqlDataSources and don't allow NULL's in any of our columns (see my previous rant).
  • Write a wrapper class around every DataTable (or perhaps in the partial class) to allow the Object DataSource to work with it. 

The Partial Class solution may be easiest, but it is still some magical mix of parameters that will make it appear in the ObjectDataSource configuration dialog.  I hope to have a better solution soon for this, but don't count on it.

Comments:

Have you looked at DLINQ yet? It appears to be mostly an ORM with a bit of LINQ sprinkled on top.

Yes, not a fan really. And its not nearly ready for production apps.

Check http://weblogs.asp.net/aaguiar/articles/432695.aspx for an Asp.Net 2.0 DataSource that supports typed DataSets...

I also was really disappointed that Microsoft has not included DataSetDataSource in the final release.
ObjectDataSource is quite unusable in both small and large apps since it allows only single row processing.
SqlDataSource is good for nothing since it does not allow customization of read and save logic.
We using now http://www.lastcomponent.com solution and they offer binding to the typed DataSet via DataSetDataSource.

There is still a chance that Microsoft will restore this functionality, vote here.

http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=e2996990-64a5-4308-921d-245071e6f174


 



 
Save Cancel