To get maximum value of a column that contains integer, I can use the following T-SQL comand
SELECT MAX(expression ) FROM tables WHERE predicates;
Maybe help, if you want to add some filter:
context.Persons .Where(c => c.state == myState) .Select(c => c.age) .DefaultIfEmpty(0) .Max();