Posts

Showing posts with the label DRY

Separating Business Rules from Data Access

Image
Business rules can be mixed into data access code. This scenario is a violation of the Single Responsibility Principle, because the data access class would have to change if the business rules change. In this post I will show you how to separate the business rules from the data access code.