Onion Architecture: Should Service Layer contain DB Context?

Published: 18/09/2019
Onion Architecture: Should Service Layer contain DB Context?
Source: SOFTWAREENGINEERING.STACKEXCHANGE.COM

In Onion Architecture, we have repository layer which conducts Crud Operations (simple insert, delete, update). (Applying Entity Framework with database) Onion Architecture Additionally , we have Service Layer which conducts complex business logic. Questions (1) Should DBContext leak into Service layer? What if we wanted to conduct a complex business logic query, which is not possible from simple

Read more
Related news
Comment
FACEBOOK