Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How is this standard C# code to work over a list:

  var males = from p in context.Person where p.Sex = “M” select c;
Any more imperative whether context represents a C# object or a database?


Well, LINQ is special, it is a language that is similar to SQL that's inside of another language. Such code then is translated to SQL. The language is still not SQL but SQL-like and is incomplete, for example you can't do CTE in it.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: