~/talk

Getting the best out of Entity Framework Core

Talkat NDC London 2020 · 2020-01-27..01-31· [databases]
slides:none on file

Explains how EF Core translates LINQ into SQL, how relational fix‑up and change tracking produce four books and three authors in memory from one query, and why EF Core 3’s AsNoTracking change and rewrite of LINQ→SQL break and speed up some queries. Shows select loading with AutoMapper ProjectTo to do averages in the database, using SQLite/SQL Server for unit tests, and a real case that cuts a page load from nine seconds to under two. Notes Cosmos DB limitations and soft‑delete query filters.

AI-written summary · about

  1. 0:00Intro
  2. 0:15Entity Framework Core in Action
  3. 1:58A super-simple database to show how EF Core works
  4. 9:29Three types of relationships
  5. 12:34Three (four) ways of reading the database
  6. 15:15A look at the Select load code
  7. 18:16The SQL created by the Select query
  8. 23:56A better way to set up the relationships
  9. 26:54EF Core works out the correct order for the SQL
  10. 29:30Understanding relational fixup
  11. 31:09Relational fixup and hierarchical data
  12. 33:45EF Core and Domain-Driven Design in 5 minutes
  13. 35:39An example of a DDD-styled entity class
  14. 37:44Alternative to Delete - soft delete
  15. 41:23ValueConversions (came in EF Core 2.1)
  16. 43:00Using code to configure EF Core
  17. 45:25Using Cosmos DB to improve performance
  18. 46:52Cosmos DB-in EF Core 3 (some limitations)
  19. 48:33Unit testing applications that user EF Core
  20. 53:37The end
~/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.