Base solution for your next web application
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.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)