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; |
|
For that, you’ll need to add the following to your source file:
| C# |
Copy Code
|
|---|---|
using C1.LiveLinq.AdoNet;
|
|
The AsIndexed() used will be C1.LiveLinq.AdoNet.AdoNetExtensions.AsIndexed|keyword=AsIndexed Method (DataTable). It is specifically optimized for data in ADO.NET DataSets.