Decoupling into DAL and BLL - my concerns.
Posted
by novice_man
on Stack Overflow
See other posts from Stack Overflow
or by novice_man
Published on 2010-06-08T11:37:24Z
Indexed on
2010/06/08
11:42 UTC
Read the original article
Hit count: 259
Hi,
In many posts concerning this topic I come across very simple examples that do not answer my question.
Let's say a have a document table and user table. In DAL written in ADO.NET i have a method to retries all documents for some criteria. Now I the UI I have a case where I need to show this list along with the names of the creator.
Up to know I have it done with one method in DAL containig JOIN statement. However eveytime I have such a complex method i have to do custom mapping to some object that doesn't mark 1:1 to DB.
Should it be put into another layer ? If so then I will have to resing from join query for iteration through results and querying each document author. . . which doen't make sense... (performance)
what is the best approach for such scenarios ?
© Stack Overflow or respective owner