How to write sum calculation based on ria service?

Posted by KentZhou on Stack Overflow See other posts from Stack Overflow or by KentZhou
Published on 2009-12-09T17:15:32Z Indexed on 2010/04/21 14:03 UTC
Read the original article Hit count: 263

Filed under:
|
|

When using ria service for SL app, I can issue following async call to get a group of entity list.

LoadOperation<Person> ch = 
this.AMSContext.Load(this.AMSContext.GetPersonQuery().Where(a => a.PersonID == this.performer.PersonID));

But I want to get some calculation, for example, sum(Commission), sum(Salary), the result is not entity, just a scalar value. How can I do this?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about ria-services