You must Sign In to post a response.
Category: LINQ
#759317
Hello Ashok,
Refer the linq query for example :
var result = tblSystems.GroupBy (s => 1).Select (s => new
{
val1 = s.Sum (x => x.fkInfoSubCatID),
val2 = s.Sum (x => x.fkCompanyID),
val3 = s.Sum (x => x.eventResult)
});
Hope this will help you.
Mark the answer if it helped you.
Regards,
Nirav Lalan
DNS Gold Member
"If you can dream it, you can do it."
Refer the linq query for example :
var result = tblSystems.GroupBy (s => 1).Select (s => new
{
val1 = s.Sum (x => x.fkInfoSubCatID),
val2 = s.Sum (x => x.fkCompanyID),
val3 = s.Sum (x => x.eventResult)
});
Hope this will help you.
Mark the answer if it helped you.
Regards,
Nirav Lalan
DNS Gold Member
"If you can dream it, you can do it."
Return to Return to Discussion Forum