Using C# Expression Trees in the Real World

Unraveling the mysteries of expression trees and how libraries like Entity Framework use them to translate code into SQL.

Duration: 60 minutes
Level: Advanced
Presented: 10 times
C# .NET Expression Trees Advanced

Abstract

Expression trees are one of the most powerful yet underutilized features in C#. This talk demystifies expression trees and shows how they enable magical features in libraries like Entity Framework, AutoMapper, and more.

Through practical examples, we'll build our own mini-ORM to understand how LINQ providers work, create dynamic query builders, and explore metaprogramming techniques. You'll leave with a deep understanding of expression trees and the confidence to use them in your own projects.

Watch Recording

NDC Oslo (2019)

NDC Minnesota (2019)

Presentation History

KCDC

Kansas City, USA • August 13-15, 2025

SDD

London, UK • May 12-16, 2025

SDD

London, UK • May 15-16, 2024

Hot Topics Developer Group (as "Transforming Your Code With C# Expression Trees")

Virtual • September 3, 2024

Update Conference

Prague, Czech Republic • November 10-11, 2022

KCDC

Kansas City, USA • September 15-17, 2021

NDC Oslo

Oslo, Norway • June 17-21, 2019

Watch Recording

NDC Minnesota

Minneapolis, USA • May 6-9, 2019

Watch Recording

NDC Porto

Porto, Portugal • February 26-March 1, 2019

KCDC

Kansas City, USA • July 17-19, 2019

Interested in this talk?

I'd be happy to present this talk at your conference, meetup, or corporate event. Let's discuss how this session can bring value to your audience.