Base solution for your next web application
Open Closed

AppService and DomainService methods using UOW #2829


User avatar
0
bilalhaidar created

Hello, In my AppService or DomainService methods, I call some private methods, some common code used in multiple functions.

Do I need to add the attribute [UnitOfWork] also to those private methods? Or they will inherit it from the calling method?

Thanks


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

    Hi,

    Yes, they will be inside an UoW if the caller method is in UoW.

  • User Avatar
    0
    bilalhaidar created

    Thanks :)