News for hackers. Stuff that matters.
Re:Explore union types in C# 15 by CharlieDigital on Wednesday April 08, 2026 @09:48AM (#47690191)
It is a strongly-typed query generator?
Re:Explore union types in C# 15 by gib444 on Wednesday April 08, 2026 @11:16AM (#47691398)
I meant code generators like sqlc
Re:Explore union types in C# 15 by CharlieDigital on Wednesday April 08, 2026 @11:30AM (#47691588)
Then this goes back to your question:

    > Is it good at the wrong thing?
No, it's good at the right thing which is allowing developers to write type-safe SQL queries using C# at the application layer versus writing SQL that gets translated into C#.
Re:Explore union types in C# 15 by mattgreenrocks on Wednesday April 08, 2026 @12:00PM (#47692032)
Yep, up there with ActiveRecord as the finest ORM I’ve ever used. What seals it for me is the low coupling it imposes on entities.
Re:Explore union types in C# 15 by gib444 on Wednesday April 08, 2026 @01:16PM (#47693243)
I don't think you were aware of code gen SQL tools before this conversation right
Re:Explore union types in C# 15 by CharlieDigital on Wednesday April 08, 2026 @02:54PM (#47694611)
What's the relevance here? Some sort of weird "Ha! Gotcha!" I'm certainly aware of code to SQL and SQL to code generators as generalized techniques, but I've not used SQL to code generators because these are not practical for most teams in the domain spaces where I operate.

Your original quote, verbatim:

    > Eg compare to strongly-typed query generators
"strongly-typed query generators" not "strongly-typed command generators" nor "strongly-typed code generators".

EF is precisely a code to structured query language (SQL) query generator and not a query to code generator.