Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Limitations / Problems with ObjectDataSource

Posted on 2009-07-06
7
Medium Priority
?
288 Views
Last Modified: 2013-12-17
Guys,
Can anyone help me in understanding the Limitations / Problems with ObjectDataSource in .NET 2.0 and 3.5 framework? I have heard that this is not a best practice to use ObjectDataSource. We are going to create a new application with SOA and SaaS model. We want the application be very much flexible and easily adoptable.
Please suggest me.
0
Comment
Question by:saj_37uk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 18

Accepted Solution

by:
Richard Lee earned 1000 total points
ID: 24787571
ObjectDataSource Limitations:

1. Tightly coupled to databound control.
2. Tightly coupled to select/update/delete methods
3. Event lifecyle difficult to follow especially when interacting with other complex controls.
4. Event firing out of your control.
5. Hard to extend application.

A better loosely coupled and more flexible data access layer is appropriate for your SOA and SaaS model. To increase reliability and decrease development time an ORM such as LINQ or Entity Framework can be used.

I would strongly advised against using ObjectDataSource a model such as the following could be used.

             <-- Lightweight DTOs                <-- ORM DTOs
Presentation    <--    Business     <--    LINQ/Entity Framework/etc    <--    Data Source
-------------------------------------------------------------------------------------------------------
 Presentation           Business                                    Data Layer
     Layer                     Layer
-------------------------------------------------------------------------------------------------------
0
 

Author Comment

by:saj_37uk
ID: 24787729
Thank you very much!
Do you have any other suggestion for using with SOA & SaaS model? We are planning to include CSLA framework.
0
 
LVL 18

Assisted Solution

by:Richard Lee
Richard Lee earned 1000 total points
ID: 24787877
I am not a fan of the CSLA framework however it works and caters for concurrency.

To support loose coupling & separation of concerns (SoC) you may want to look into a UI design pattern/framework. Since you are using ASP.NET the ASP.NET MVC Framework springs to mind. http://www.asp.net/mvc.

This ensures that all logic that handles functionality can be seperate and therefore can be handled by a service outside of the UI. You can also look into the Model View Presenter (MVP) pattern. Almost the same but you can choose your preference.
0
 

Author Comment

by:saj_37uk
ID: 24788205
Thank you very much for your open suggestions. I'm accepting this as a solution of my query.
0
 
LVL 18

Expert Comment

by:Richard Lee
ID: 24788441
Thanks but I don't think you prompted to close the solution rather than accept.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question