What to return from the DAL to BLL

前端 未结 7 1954
不思量自难忘°
不思量自难忘° 2021-02-02 01:48

I currently have an application which consists of: User Interface (web page) BLL (Manager & Domain Objects) DAL (DataAccess class for each of my Domain Objects).

I u

7条回答
  •  故里飘歌
    2021-02-02 02:41

    In my opinion you should never let DAL access BLL. That is an unnecessarily dependency.

    Putting the Book class into a new project (perhaps named DomainModel) will fix the circular reference. You could do something like this:

    Project BLL reference DAL and DomainModel

    Project DAL reference DomainModel

    Project UI reference BLL and DomainModel

    Project DomainModel reference nothing

提交回复
热议问题