Problem solve Get help with specific problems with your technologies, process and projects.

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 last published in March 2001

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.