locked
Register Unit of Work Interfaces on startup? RRS feed

  • Question

  • User-547933108 posted

    Hey

    I have started with Blazor Server Side.
    On database layer I work with the unit of work principal. So, this means, every class has it's own interface.

    Does it make sense to register them on startup?

    Is there any kind of difference, if I inject the Interface or I create a new class?

    I am not talking about the difference, working with an Interface instead of the class itself (Dependency Injection). This I fully understand.
    But what I try to ask, if there is some other particular advantage, to use the service collection!? (Security for example)

    THX 

    Friday, May 15, 2020 6:47 AM

Answers

  • User-821857111 posted

    what I try to ask, if there is some other particular advantage, to use the service collection!? (Security for example)
    No. The service collection is basically a DI container.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 15, 2020 7:38 AM

All replies