Unit of Work for Corprio API to access database
$ dotnet add package Corprio.UnitOfWorkThe Corprio.UnitOfWork project delivers the UOW class. The purpose of the UOW class is to protect data integrity by including all database update/add/delete actions in a single transaction. Then all database update/add/delete actions are either finished successfully or aborted completely.
For example, when an invoice is added, two objects are added to the database at the same time.
If the action adds the Invoice to the database successfully but fails to add the Stock object to the databsae, then the inventory becomes incorrect. UOW is designed to avoid this siutation.