c# - How to use Linq Query in Object Data Source? -
if have following query code :
datatable loans =loans_hr.calcloans(2011, 7, 2013); var groupeddata = b in loans.asenumerable() group b b.field<int>("loan_code") & b.field<int>("emp_num") f select f.copytodatatable();
now want use groupeddata
result in objectdatasource
how ?
try this:
group b new {b.field<int>("loan_code"), b.field<int>("emp_num")}
p.s. perhaps, must use aggregates.
Comments
Post a Comment