Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

When to use a manager? #8243


User avatar
0
FlexSolution created

I have a basic question about the repository and the managers.

In some services like OriganizationUnitAppService you use the manager as well as the repository. Then there are also managers that you use in managers.

Can you explain your rule on how to determine when to use a manager and when to use the repository directly?

Thanks.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    The repository contains only insert, delete, update, get and so on operations on the entity.

    managers may implement some business logic, of course, it is free to use the repository and other services.

    https://aspnetboilerplate.com/Pages/Documents/Domain-Services

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please open a new issue if you are still having this problem.