expression tree

A data structure that describes code, such as a lambda, as a tree of operations that another program can inspect and translate.

In more detail

Unlike compiled code, a tree can be examined and translated before anything runs. IQueryable<T> stores your lambdas as expression trees, which is how EF Core can turn p => p.Price < 20m into SQL.

Related terms

Taught in

References