Join Olivia Chiu Stone for an in-depth discussion in this video Use the into keyword, part of LINQ with C# Essential Training.
- This is an example of a query using the into keyword.…Here, the into keyword is used with the join keyword…signalling to the compiler that a group join is needed.…This will then return a sequence within a hierarchy.…The into keyword can also be used with the select…or group clauses to signal a query continuation.…Imagine that I want the names of the customers…that have spent more than $500 Euros ordered…by their last name.…Using chaining, I can create a query similar to this…to accomplish what I want.…
First, I convert the price property value…from US dollars to Euros.…Then I filter to return those…that spent more than $500 Euros.…And finally, order the results of that…by the customer's last name.…So, I try and run this code…and I get an error.…The code here will not compile.…Recall that all comprehension queries must begin…with a from clause and end with a select or a group clause.…The use of the select or group clause indicates…to the compiler that the query has finished.…So, looking at the query,…the first instance of select indicates to the compiler…
AuthorOlivia Chiu Stone
In LINQ with C# Essential Training, engineer Olivia Chiu introduces techniques for querying, updating, and transforming data with LINQ. She covers standard queries—such as finding overlaps in two datasets and creating hierarchies—as well as complex chained queries. She also shows how to group and join LINQ queries with lambda expressions, and use LINQ to query SQL databases and XML documents. Last but not least, Olivia provides tips for optimizing the performance of your queries.
- Creating and executing a LINQ query
- Returning results
- Changing the data source type
- Performing standard queries
- Working with lambda expressions
- Chaining and complex queries
- Querying SQL and XML
- Performing tree queries
- Using sequences, elements, and scalars
- Allocating memory
Skill Level Intermediate
1. Introduction to LINQ
Common use cases1m 45s
2. Basic LINQ Queries
3. Data Transformation
Return results as a new type1m 39s
4. Type Relationships
5. Standard Queries
6. Lambda Expressions
7. Complex Queries
8. LINQ to SQL
9. LINQ to XML
10. Other Operators
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.