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:
01124417
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
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.

~~Bonnie


>>It depends <g> ... are you using Web Services to call your BLL?
>
>Bonnie,
>
>Thanks for the reply.
>
>With your recommendation of SOA, yes, I plan to call it from WS. But I don't want to rule out the possibility of calling it from desktop applications.



>>It depends <g> ... are you using Web Services to call your BLL?
>
>Bonnie,
>
>Thanks for the reply.
>
>With your recommendation of SOA, yes, I plan to call it from WS. But I don't want to rule out the possibility of calling it from desktop applications.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform