Tuesday, April 26, 2011

select max value of field by linq

int clientid;
var max_Query = (from c in abc.Table where (c.id== clientid)
select c.SortOrder
).Max();

No comments:

Post a Comment