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