Total Pageviews


How To get Max value of column of Database table Using LINQ query in .net

Hello Viewers,

To get maximum value of database table column is very simple as just we have to write :-

Select Max( Percentage ) from StudentsResult

but in LINQ you need to write like

(from St in StudentsResult select (St. Percentage )).Max()  

in the same way we can use other aggregation function to do other operations using LINQ in our code behind


Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews