← Back to context

Comment by gib444

9 hours ago

I meant code generators like sqlc

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#.

  • 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.

  • I don't think you were aware of code gen SQL tools before this conversation right

    • 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.