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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -