Aspdotnetsiva
menu
Home
-----
Asp.net
------
Sqlserver
------
Ajax
------
Android
------
Html
------
Oops concepts
------
Questions
------
Wednesday, 7 November 2012
how find sum in asp.net using linq
sum():
var query = dc.Emps.Sum(p => p.Salary);
Label3.Text = query.ToString();
lambada expression sum():
//var query = (from myemp in dc.Emps select (myemp.Salary)).Sum();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment