I have an application with three layers (Presentation, Business Logic, and Data Access). In the data access layer, I have an object called Unit
, and I have another object called Unit
in the business layer.
When Insert()
is called on the Unit
object in the business layer, it calls the Insert()
method on the corresponding object in the data access layer, and passes itself as the parameter. The problem I have is that the data access layer does not reference the business layer, and allowing it to do so would cause circular dependencies.
Is my approach flawed? If so, what would be a good solution to my problem?