Introducing LINQ with XML and Databases

In the previous part of the article we looked at the new syntax provided by LINQ through exploring some simple scenarios involving an array of Person objects. We extracted certain elements ordered them and grouped them according to the specific scenario. LINQ however is not limited to simple arrays. While arrays are useful for illustrating the basic principles behind LINQ LINQ is much more powerful and can work with other sources of data such as XML files or relational databases. In this article we ll explore in brief the usage of LINQ with XML and with SQL databases….



