Ok.. I've tried all the examples on MSDN and other sites but nothing seems to work.
I want to query a data table and find out how MANY rows match the selection criteria. using LINQ to dataset and c# /.net 3.5. How would I modify the query to return an int count.
Wrapping the whole select in a (...) refuses to work as it states the row type has no Count method.
var recordCount = from c in qADCMainDatabase.terrain_t
ype_vs_uni
t_type_det
ails.AsEnu
merable()
where ((c.terrain_type_name == terrainType) &
(c.section_name == sectionName) &
(c.unit_type_name == unitTypeName))
select c;
Start Free Trial