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
Title:
Plug DataAccess layer into Business layer
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01124395
Message ID:
01124395
Views:
48
Hi all,

I have built a data access layer (DAL) and trying built a business logic layer (BLL). BLL will access DAL which in turn accesses the data layer (Database).

My question is that which is a better approach from the following?:

1. Have a property on the BLL class to maintain a reference to DAL. This reference will be used by methods when BLL communicates with the database.

2 Or pass DAL reference as a parameter to each public method that needs it.

Any pros or cons?

Any comments or suggestions or experience will be greatly appreciated!

TIA
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

Next
Reply
Map
View

Click here to load this message in the networking platform