Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Plug DataAccess layer into Business layer
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01124395
Message ID:
01124541
Views:
10
>Dawa,
>
>The main reason I asked about Web Services is just so that you'd keep in mind the stateless nature of Web Service calls (and consequently the stateless nature of your BLL object in such a call).
>
>I use my Web Service methods almost exclusively as wrappers around the calls to the BLL methods (with a few exceptions). So, in this case, only one BLL method is called from the Web Service and that one BLL method does all the work. Therefore, it's pretty painless to have a reference to the DAL that every BLL method can use and there's really no reason not to do it this way, AFAIK.
>
>I'm trying to come up with a scenario when it might be better to use your second option (passing reference to DAL to each method call) and I can't think of any reason off the top of my head where that might be better.
>

Thanks Bonnie!

You're right. I wasn't thinking about the stateless nature of web services.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform