~/talk

Using C# Expression Trees in the Real World

Talkat NDC Minnesota 2019 · 2019-05-06..05-09· [databases]
slides:none on file

Shows how C# expression trees are inspected, built with the Expression API, and transformed with an ExpressionVisitor to translate LINQ to SQL for Entity Framework, power AutoMapper’s ProjectTo, and generate runtime lambdas for things like dynamic order‑by and a rules engine. Describes replacing hundreds of stored procedures with expression-based maps, producing predictable SQL, saving “thousands of hours” of work, and compiling expressions for performance comparable to handwritten code. ExpressionVisitor, ProjectTo, dotnetfiddle examples

AI-written summary · about

  1. 0:00Introduction to expression trees
  2. 2:28Lambdas vs. expressions
  3. 5:01Creating and reading expressions
  4. 11:53Real-world uses: Entity Framework
  5. 15:31The power of expression visitors
  6. 21:32Practical code demonstrations
  7. 23:36Auto mapper and projection
  8. 27:21Case study: Building custom integration
  9. 34:08Advanced dynamic queries
  10. 41:21Reflection vs. expressions
~/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.