~/talk

Using C# Expression Trees in the Real World

Talkat NDC Porto 2019 · 2019-02-26..03-01· [dotnet]
slides:none on file

Shows how C# expression trees power Entity Framework, AutoMapper and custom tooling by building and compiling Expression.Parameter/MethodCall trees, using ExpressionVisitor to translate to T‑SQL, and generating dynamic lambdas for fast delegates. Describes a SQL generator that replaces hundreds of stored procedures, supports joins and common transforms, and saves thousands of developer hours over 2–3 years. Covers AutoMapper project to to avoid SELECT *, dynamic order‑by/property selectors, JSON rules → expressions, and pitfalls like missing null‑prop and explicit casts.

AI-written summary · about

  1. 0:00Introduction
  2. 2:32lambda expressions
  3. 8:20expression API
  4. 13:08Real world talk
  5. 13:34Entity Framework
  6. 15:38Queryable
  7. 17:08Expression Visitor
  8. 17:45Expression Parts
  9. 18:07Expression Visitors
  10. 23:28AutoMapper
  11. 24:37AutoMapper Example
  12. 25:47AutoMapper Magic
  13. 26:37Spencers Background
  14. 27:24Model Mapping
  15. 28:35Stored Procedures
  16. 30:44Syntax Generators
  17. 32:11Translating Expressions
  18. 33:31The Result
  19. 35:02A Closer Look
  20. 36:14Cooking an Expression
  21. 39:32Dotnet Fiddle
  22. 40:50Rules Engine
  23. 43:22Example
  24. 44:57Expressions vs Reflection
  25. 46:27Expressions are not perfect
~/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.