How to get a Sum of a Column using C#, with Silverlight?
This is my Table
Name : Balance
I want to get the Sum of the Balance. How?
I have a code here but I think there's something lacking.
private void cmdUpdate_Click(object sender, RoutedEventArgs e)
objctx = new InOutOrganizationContext();
var salary = objctx.MyBalances.Select(i => i.Balance);
var sum = salary.Sum();
Any help? please!