I've decided to ditch repositories, instead I will use them directly in my services. However, I am now not sure where my EF DbContext should sit and where SaveChanges() should be called from. Here is my current design:
- MVC Client
- View Models
- Core BLL
- Domain Models
- Managers
- Services - Used to talk to third-parties and DAL
- Data DAL
- Entity Models
- DbContext
Should services sit in BLL, or should that be in the DAL?
Also any improvements you could suggest on the above are welcome, thank you!
Aucun commentaire:
Enregistrer un commentaire