Best Practices BO, DTO + WCF

Best Practices BO, DTO + WCF

Old forum URL: forums.lhotka.net/forums/t/7054.aspx


gidzone posted on Friday, June 05, 2009

I was curious how to architect a page in my solution. 

We have a result listing page which displays a list of address that are generated as results of a search.  In addition to displaying this list in a ListView we would like to display a google map of all the results.

Currently, we have a ReadOnlyListBase object which is bound to the ListView.  I am having trouble figuring out what would be the best way to display the list of address in the google map. 

I was thinking of serializing the list of address to JSON and then using that output to display on the map.  However, the book says that we should go through a DTO via WCF because serialzining a BO directly to JSON is bad practice.  My question is that if i do that I would have to hit the DB twice for the search results and this might get expensive down the road.

Any advice would be greatly appreciated.

thanks!

-sanjayu

Copyright (c) Marimer LLC