From (keyword)

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.



Query Expressions allow you to drill into nested sequences, basically flattening out the hierarchy, by using nested from clauses. For example, the following query would return all orders placed by customers in Sydney:

var list := from c in MyCustomers where c.City = 'Sydney'
              from o in c.Orders order by o.OrderDate desc;

This query will first filter the customer list, using where clause. From all the customers left, it will now create a new sequence combining all the orders. Finally, the entire list of all orders will be ordered by date.


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox