Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore with deeper research into the topics covered in this chapter.
Answer the following questions:
Select
and SelectMany
extension methods?Create a console application, named Ch09_Exercise02
, that prompts the user for a city and then lists the company names for Northwind customers in that city:
Enter the name of a city: London There are 6 customers in London: Around the Horn B's Beverages Consolidated Holdings Eastern Connection North/South Seven Seas Imports
Enhance the application by displaying a list of all unique cities that customers already reside in as a prompt to the user before they enter their preferred city:
Aachen, Albuquerque, Anchorage, Århus, Barcelona, Barquisimeto,
Bergamo, Berlin, Bern, Boise, Bräcke, Brandenburg, Bruxelles, Buenos
Aires, Butte, Campinas, Caracas, Charleroi, Cork, Cowes, Cunewalde,
Elgin, Eugene, Frankfurt a.M., Genève, Graz, Helsinki, I. de
Margarita, Kirkland, Kobenhavn, Köln, Lander, Leipzig, Lille, Lisboa,
London, Luleå, Lyon, Madrid, Mannheim, Marseille, México D.F.,
Montréal, München, Münster, Nantes, Oulu, Paris, Portland, Reggio
Emilia, Reims, Resende, Rio de Janeiro, Salzburg, San Cristóbal, San
Francisco, Sao Paulo, Seattle, Sevilla, Stavern, Strasbourg,
Stuttgart, Torino, Toulouse, Tsawassen, Vancouver, Versailles, Walla
Walla, Warszawa
Use the following links to read more details about the topics covered in this chapter:
3.145.12.156