IT:AD:UML:Examples:State Diagrams

Summary

DDD

 
  note over AppService: Example of UoW
  AppService->UoW:BeginWork
  AppService->Repo1:Update
  Repo1->UoW:MarkAsUpdated
  AppService->Repo2:Add
  AppService->Repo2:MarkAsAdd
  AppService->UoW:Commit
  UoW->Db:Persist

UI→App:CreateInvoice() App→App:CreateUoW() App→Domain: Domain→App: Domain→Repo: UI→App:SaveInvoice()