~/talk

Practical Domain-Driven Design with EF Core

Talkat NDC Sydney 2020 · 2020-08-31..09-03· [databases]
links:none on file
slides:none on file

A small florist subscription app is refactored from an anemic model into a behavior-rich domain using .NET Core, EF Core and Mediator: constructors validate and set active status, private parameterless ctor supports EF, collections become read-only, and discount rules (>$100 → 20%, >$1000 → 50%) move into a domain service with double dispatch; domain events are queued and dispatched via EF Core SaveChanges interceptor and Mediator publish, value objects map with owned entity mapping, and unit tests run green after each change.

AI-written summary · about

  1. 0:00Start
  2. 1:26What is Domain-Driven Design?
  3. 1:44What is Domain Model?
  4. 5:44Sample Domain
  5. 22:42Extract Methods
  6. 23:22Encapsulate Collection
  7. 31:25Double Dispatch
  8. 32:44Domain Events
  9. 47:38From Primitive Obsession to Value Objects
  10. 48:25Where is the Repository?
  11. 49:30Can the Unit of Work help us?
  12. 50:08Embrace the DbContext
  13. 51:55Base Entity ID
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.