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
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
0 comments:
Post a Comment