Hacker News new | ask | show | jobs
by anonymars 7 days ago
Also helps with autocomplete, which is why LINQ starts with `from`
1 comments

Linq took that from Hibernate in believe. But in general, I'd say almost all ORM and SQL-gen libraries have FROM first, because it's clearer for programmers.
Hibernate puts SELECT last if requesting only specific properties?

LINQ:

  var query = 
    from e in entities
    where e.property1 == value
    select e.property2;