ComponentOne LiveLinq > How to Use LiveLinq > Query Collection > Using ADO.NET Data Collections (DataSet) |
ADO.NET DataTable can also be used in LiveLinq, for example:
C# |
Copy Code
|
---|---|
CustomersDataTable customers = ... var query = from c in customers.AsIndexed() where c.City == "London" select c; |
C# |
Copy Code
|
---|---|
using C1.LiveLinq.AdoNet;
|
to your source file. The AsIndexed() used will be C1.LiveLinq.AdoNet.AdoNetExtensions.AsIndexed. It is specifically optimized for data in ADO.NET DataSets.