The Artima Developer Community
Sponsored Link

Design Forum
Passing data between layers

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Geethalakshmi Aravamuthan

Posts: 1
Nickname: vagl
Registered: Aug, 2007

Passing data between layers Posted: Aug 16, 2007 11:32 PM
Reply to this message Reply
Advertisement
Hi all,

I am newbie here.

My Tech. environment: .Net and Sql Server

Problem:
Manyatimes, we need to return data from different tables in the database to the UI (for example, search results) whose schema wouldnt match with any of the domain objects.

In this case, one option is to transfer the data using the datasets/datatables feature provided by .Net.

The other option I could think of is to create business (DTO?) objects to just pass on the data from the DB to the UI.

I prefer the second approach. However, I need suggestions on how do I implement it? Will this DTO contain a reference of all the domain objects involved or Can I just include only the desired columns?

Or, do we have any other solution?

Thanks in advance,

AGL

Topic: OO website development Previous Topic   Next Topic Topic: Travel to VietNam With VenueVietNam.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use