Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ctx = new DataClasses1DataContext();
- double? avg = (from n in ctx.men
- where n.status == "Happy"
- select n.age).Average();
- int? sum = (from n in ctx.men
- where n.status == "Happy"
- select n.age).Sum();
Add Comment
Please, Sign In to add comment