News for hackers. Stuff that matters.
Re:How to be a -10x Engineer by myko on Friday April 07, 2023 @07:38PM (#35488588)
I've never really worked with C# before but I assume that query is about as efficient as a similar SQL statement?
Re:How to be a -10x Engineer by whstl on Saturday April 08, 2023 @09:35PM (#35499314)
Exactly.

LINQ allows you to use the same syntax for both local arrays and in an ORM, or any data source really, if you implement its IQueryable interface. You implementation can "parse" the AST and generate an SQL query, like a regular ORM.