Summary:
汇总:
LINQ allows you to query data from different types of data sources using one syntax rather than needing to learn a variety of different syntaxes.
LINQ让你只使用一种语法格式就可以从不同种类的数据源中查询数据,无需学习不同种类的语法。
LINQ can use any type of IEnumerable or IEnumerable as a datasource.
LINQ只能应用任何类型是IEnumerable的数据源。
Queries don't execute at the time create the query, they will execute when the results are needed.
查询不会在你创建查询的时候执行,仅在你需要查询结果的时候执行。
Where clauses filter your results conditionally.
Where语句可以分情况过滤结果。
Orderby clauses arrange your results.
Oderby语句可以对结果进行排序。
Groupby clauses put your results into a collection of groups.
Groupby语句可以将结果进行分组。