This is a migrated thread and some comments may be shown as answers.

Best Practices for N-Tier

3 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 23 Feb 2010, 04:56 PM
Hi,

I faced some difficulties on mapping my desired domain model to persistent object using OA. Then i found an article in the knowledge base, talking about wrap persistent object (generated by OA) to business object.

Northwind N-Tier Web Demo Application 


Is this the best practice to use for n-tier web development? What are the disadvantages of doing this?

Thanks,
Kevin

3 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 25 Feb 2010, 09:01 AM
Hi Kevin,

Yes, we recommend that the persistent objects are not used in all layers of the application but only in the data access layer and in the layer that contains the business logic and handles the reading / writing of persistent objects. This way you get stronger separation of concerns and if necessary you can replace more easily the different layers of the application.
The disadvantage at the moment is that  you have to write manually the additional wrapper objects. We will provide an option for automatic generation of such objects in one of the future releases.

Regards,
Alexander
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Michael Josiah
Top achievements
Rank 1
answered on 26 Feb 2010, 09:11 AM
Hi

If you could bump this feature (wrapper generator) to Q1 or an out of band release, then I would be pretty greatful. Right now for convenience we are literally passing iqueryable data within the UI and business tiers. It makes the system very flexible but im sure its not the best way to do things.
0
Alexander
Telerik team
answered on 28 Feb 2010, 05:47 PM
Hello Michael Josiah,

I am afraid that this functionality will not make it for the Q1 release. However, I hope that we will be able to provide it in one of the service packs before Q2.

Best wishes,
Alexander
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Michael Josiah
Top achievements
Rank 1
Share this question
or