Add mermaid diagrams of before (DbBase inheritance) and after (DTO + mappers) situation
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
%% Before: WebApp's domain classes inherit from DbBase (EF),
|
||||
%% which depends on DbContext. Relations live inside the DB-backed classes.
|
||||
classDiagram
|
||||
class DbContext {
|
||||
+SaveChangesAsync()
|
||||
}
|
||||
class DbBase {
|
||||
+Guid id
|
||||
}
|
||||
class WebApp {
|
||||
<<Web App>>
|
||||
}
|
||||
class Client {
|
||||
+Guid id
|
||||
+string name
|
||||
}
|
||||
class Order {
|
||||
+Guid id
|
||||
}
|
||||
|
||||
DbBase --> DbContext : uses (EF)
|
||||
WebApp ..> DbBase : depends on
|
||||
Client --|> DbBase : inherits
|
||||
Order --|> DbBase : inherits
|
||||
WebApp --> Client
|
||||
WebApp --> Order
|
||||
Client "1" --> "*" Order : has many
|
||||
Order "*" --> "1" Client : open / close
|
||||
Reference in New Issue
Block a user