SHARE
TWEET

Untitled

a guest Dec 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var ctx = new DataClasses1DataContext();
  2.  
  3.         double? avg = (from n in ctx.men
  4.                         where n.status == "Happy"
  5.  
  6.                         select n.age).Average();
  7.  
  8.         int? sum = (from n in ctx.men
  9.                         where n.status == "Happy"
  10.  
  11.                         select n.age).Sum();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top