Querying Datasets with LINQ

LINQ to DataSets is the standard LINQ provider for querying datasets and is offered by the System.DataSet.DataSet Extensions namespace. Querying means that LINQ can only get information for datasets but not for manipulating them. If you need to add, remove, replace, or persist data versus datasets, you need to use old-fashioned techniques. Instead you can improve getting information using LINQ. Generally you use datasets in Windows or Web applications. This chapter shows you code within a Console application. This is because we need a high level of abstraction so that all the code you see here can be used in both Windows and Web applications (except for Silverlight applications that do not support datasets). To complete ...

Get Visual Basic® 2010 Unleashed 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.