Smartly Academy

Smartly Academy

The C# Lab

SQL Generation — When Code Becomes Data

Expression trees turn your LINQ queries into something the compiler can hand you as a data structure. Today we use that trick to generate real SQL.

Anto Semeraro's avatar
Anto Semeraro
Mar 04, 2026
∙ Paid

A translator doesn't just swap words between languages. They parse the structure of a sentence — subject, verb, object, the relationships between them — and reconstruct that same meaning in an entirely different grammar. Word-for-word translation produces nonsense. Structural translation produces understanding.

Our ORM needs to do exactly this. It has a …

User's avatar

Continue reading this post for free, courtesy of Anto Semeraro.

Or purchase a paid subscription.
© 2026 Antonello Semeraro · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture