Using ADO.NET data collections (LiveLinq to DataSet)

ADO.NET DataTable can also be used in LiveLinq, for example:

 

CustomersDataTable customers = ...

var query =

  from c in customers.AsIndexed() where c.City == "London" select c;

 

For that, you’ll need to add

 

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.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.