Test Your Knowledge: Quiz

Question 21-1. What sorts of data sources can you query with LINQ?

Question 21-2. What is the return type of a LINQ query?

Question 21-3. Which LINQ keyword returns the result of a query?

Question 21-4. If you’re trying to return a complex type from a LINQ query, what language feature do you need to use?

Question 21-5. What data type is needed for the range variable in a LINQ query?

Question 21-6. What does a lambda expression return, when used in a LINQ query?

Question 21-7. What reference do you need to add to your project to use LINQ to SQL?

Question 21-8. What attribute do you use to define a class as representing a SQL table?

Question 21-9. How do you add table classes to your application using the Object Relational Designer?

Question 21-10. What parameters do you need to pass to the constructor of the data context class when you’re using the Object Relational Designer?

Get Learning C# 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.