~/talk

EFCore - Expression trees climbing

Talkat 4Developers 2022 Online · 2022-04-04..04-07· [dotnet]
links:none on file
slides:none on file

60% live coding demos show how to build and inspect .NET expression trees with the raw Expression API, then use EF Core to translate them to SQL and expose pitfalls: string.Contains becomes LIKE and mixes with SQL three‑valued logic causing wrong results for NULLs. A dynamic OR over a list is assembled manually and then replaced with PredicateBuilder. A performance bug (compiling thousands of lambdas → ~3s) is fixed by a compiled static expression plus an ExpressionVisitor that replaces a parameter with a constant; also warns against storing expressions as record properties (ToString recursion).

AI-written summary · about

  1. 0:00Introduction to Expression Trees
  2. 8:59Manual Expression Tree Creation
  3. 17:12Collections and Any/All Operations
  4. 27:52Universal Conditions with Expression Trees
  5. 42:57Summary and Q&A
~/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.