Ask the Expert

Is it advisable to have both DataAccess Layer and Business Layer as a single Layer?

Is it advisable to have both DataAccess Layer and Business Layer as a single Layer rather having them two different layers? What are the pros and cons of both?

There is a fundamental concept that we need to cover first. The _logical_ architecture should keep business logic and data access logic separate. The _physical_ architecture may put them together on one machine since that will perform better.

One way to implement this is to follow the technique I discuss in Chapter 8 of my Visual Basic 6 Business Objects book. This provides logical separation between the business logic and the data access, but keeps them physically in the same class to optimize performance.


This was first published in March 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: