Select model layers or BLL / DAL / BO?

I’m wondering about one thing: is it better to place all business objects and adapters in the Model folder or create 3 layers (BLL / DAL / BO) instead of the Model folder?

+3
source share
4 answers

If you follow the principle of shared responsibility , which states that a class must change for only one reason, the answer will be clear:

create 3 layers (BLL / DAL / BO)

As for the placement - for organizational reasons, I would create a different folder for each layer.

+2
source

I prefer to create a class library with all the data access code, and then reference it in an MVC application or using dependency injection.

.

0

.

.

0

, , "BLL/DAL/BO". , " Microsoft" - -, , , , . , , "".

SOLID , .

, , , .., . , , , . , , , .

0
source

All Articles